![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
This project represents sample of asynchronous weather REST API that is build using quart (flask compatible API) python web microframework based on Asyncio
This project represents sample of asynchronous weather REST API that is build using quart (flask compatible API) python web microframework based on Asyncio.
Please run following script to obtain latest package from PYPI:
➜ pip install async-weather-api
Then please execute instructions below to launch game from your environment:
import weather
weather.run(key="your-secret-key", bind="0.0.0.0:5001", debug=False)
Running on https://0.0.0.0:5001 (CTRL + C to quit)
...
Note
key
stands for API key from https://openweathermap.org
Please run next command to start async weather api via docker:
docker run -it -p 3000:5001 vyahello/async-weather-api:0.5.0 weather run --bind 0.0.0.0:5001 --mode prod --key <secret-key>
To be able to run source code please execute command below:
➜ python -m weather run --bind 0.0.0.0:5001 --mode prod --key your-secret-key
Running on https://0.0.0.0:5001 (CTRL + C to quit)
...
➜ curl -X GET http://0.0.0.0:5001/
➜ curl -X GET http://0.0.0.0:5001/index
Response: html page➜ curl -X GET http://0.0.0.0:5001/api/events/London/GB/GreatBritain
Response: json object
{"city":"London","country":"GreatBritain","name":"Jeff the player","state":"GB"}
➜ curl -X GET http://0.0.0.0:5001/api/weather/97002/us
Response: json object
{"base":"stations","clouds":{"all":90},"cod":200,"coord":{"lat":45.23,"lon":-122.8},
...}
➜ curl -X GET http://0.0.0.0:5001/sun/weather/97002/us
Response: json object
{"astronomical_twilight_begin":"04:03:49 PM","astronomical_twilight_end":"04:29:50 AM",
...}
Project has Travis CI integration using .travis.yml file thus code analysis (black
, mypy
, pydocstyle
, pylint
, flake8
) and unittests (pytest
) will be run automatically
after every made change to the repository.
To be able to run code analysis, please execute command below:
➜ ./analyse-code.sh
Also test-report.html
will be generated after unittests execution.
Other than that, a fresh versioned package will be delivered on PYPI after new tag is created using pythonpublish.yml file.
Author – Volodymyr Yahello
Distributed under the MIT
license. See LICENSE for more information.
You can reach out me at:
name
and email
pip install -r requirements.txt
to install all project dependenciespip install -r requirements-dev.txt
to install all development project dependenciesFAQs
This project represents sample of asynchronous weather REST API that is build using quart (flask compatible API) python web microframework based on Asyncio
We found that async-weather-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.