A restcountries API wrapper for Flask Applications.
Project description
Flask-RestCountries
Flask-RestCountries provides a simple intergration for restcountries.eu API with Flask Applications.
Installation
Use the package manager pip to install flask-restcountries.
pip install Flask-RestCountries
Usage
from flask import Flask
from flask_restcountries import RestCountryAPI
app=Flask(__name__)
rest_country_api=RestCountryAPI(app)
if you are using blueprints
from flask_mpesa import RestCountryAPI
rest_country_api=RestCountryAPI()
rest_country_api.init_app(app)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Tests and Examples
Examples are comming soon!.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Flask-RestCountries-1.0.0.tar.gz
.
File metadata
- Download URL: Flask-RestCountries-1.0.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2f6dbc07ea081daf9600586f2ad49618e394ea3c1fdf65992849ef74494ef9 |
|
MD5 | 1c6a92ec929f2e5148074568a29d552b |
|
BLAKE2b-256 | 152eeadd53281c40626e9052d7a73c3467e209067e84528a3929c6bd02873f64 |