Reference no: EM132388448
CSIS 354 Integrative Programming and Technologies Assignment, Liberty University, USA
CONSUMING A WEB SERVICE WITH PYTHON -
Consuming data from programmable web based API's is growing rapidly. According to ProgrammableWeb, in just six years (2010-2016), web API counts increased 758 percent with the majority being REST based. This is driven by a myriad of factors but growth of cloud based applications, (distributed computing by another name), and the resulting need to integrate the different categories is a major factor.
Description - Write a client to consume a REST web service of you choice using Python. There are many listings of such services but an excellent resource is ProgrammableWeb. Your information should produce useful information. I.e. a dump of cryptic data is not the desired product. Examples could be a weather forecast, stock quote, Bible verse, etc.,
Your solution should present the user with a question with the answer contributing to the data used in the REST web service call. For example, a weather forecast would prompt the user to enter a zip code or other location information. Once the web transaction is complete, the program should prompt again with the same question to complete another transaction. This should continue until the user enters a specified termination condition.
You output must be presented in an understandable manner. Dumps of XML, JSON, etc., are substandard and will be graded accordingly.
MESSAGE QUEUES WITH RABBITMQ -
Description - As discussed in this modules readings, indirect messaging is sometimes the preferred method of facilitating communications among multiple computers in a distributed system. One method of facilitating this is message queues.
Assignment - In this assignment you will need to install Erlang and the RabbitMQ server for your operating system. Finally, for protocol support you will need to install the Pika module. From PyCharm inside your project go to File > Settings > Project Settings > Project Interpreter. From there click on the green "+" to add a package to the project. Enter Pika in the search field at the top and select Add Package.
Now, you will need two Python source files. One sender (send.py) and one receiver (receive.py). The sender will need establish a connection, channel and declare a queue. It will then need to send a message to the message queue once per second. You may use a while loop and the time.sleep function for this. The message should be something unique, like "My name is John Doe and I love Python! #" where is # is a running counter so you can see the message number. Each of the receivers, will need to establish a connection to the same queue, register a call back, and start consuming any messages received. When a message is received it should be output to standard out.
This assignment is not very realistic when implemented on a single computer but recognize that "localhost" need not be the address. The message queue could be located on one server with dozens of senders and receivers each located anywhere.
As you are running your code, noticed that you can start the server. It will begin sending messages. Wait a few seconds and start the receiver. Notice that all messages are received even though some were sent before the receiver was started. This is one of the benefits of message queues, i.e. it maintains the message history and can deliver messages to clients even if they momentarily lose connectivity.
Attachment:- Integrative Programming and Technologies Assignment Files.rar
How many years will you be able to withdraw
: You want to withdraw all your money when it reaches $14,440 (Future Value). In how many years will you be able to withdraw all your money?
|
Create hypothetical business
: Create a hypothetical business with approximately 50 to 100 employees. Place the employees in two or three different departments.
|
How much would you need to deposit in the account each month
: Suppose you want to have $600,000 for retirement in 20 years. Your account earns 10% interest. How much would you need to deposit in the account each month?
|
Disease between population a and population b
: What is the odds ratio of having the disease between population A and population B?
|
CSIS 354 Integrative Programming and Technologies Assignment
: CSIS 354 Integrative Programming and Technologies Assignment, Homework Help, Liberty University, USA - CONSUMING A WEB SERVICE WITH PYTHON
|
Describe the methods and results of the study
: In contrast to qualitative designs, which are all basically non-experimental and descriptive, quantitative research designs may be either experimental.
|
About the situational awareness
: Discusses situational awareness. Much of the security efforts of the past have been centered around prevention and protection.
|
Which office contains the health-related data
: Healthcare data at a community, county, or region level and state level determine healthcare spending and services allocated for individuals.
|
Describe the connections between privilege and religion
: For citizens in some countries, religious oppression is common and long standing. While freedom of religion is guaranteed in the U.S., religious intolerance.
|