https://github.com/mbrav/flask_cities_api
Flask Microservice API for finding towns and cities
https://github.com/mbrav/flask_cities_api
api flask python sqlachemy
Last synced: 7 months ago
JSON representation
Flask Microservice API for finding towns and cities
- Host: GitHub
- URL: https://github.com/mbrav/flask_cities_api
- Owner: mbrav
- License: gpl-3.0
- Created: 2022-01-31T20:49:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-01T21:23:33.000Z (about 4 years ago)
- Last Synced: 2025-03-20T17:54:31.125Z (11 months ago)
- Topics: api, flask, python, sqlachemy
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask_cities_api
Flask Microservice API for finding towns and cities
By default, the app loads 1117 cities and their respective 85 regions in Russia that was scraped from a [table from Wikipedia](https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%B3%D0%BE%D1%80%D0%BE%D0%B4%D0%BE%D0%B2_%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D0%B8).
## Install
**Be sure to use the same version of the code as the version of the docs
you're reading.** You probably want the latest tagged version, but the
default Git version is the main branch. :
```bash
$ git clone https://github.com/mbrav/flask_cities_api
$ cd flask_cities_api
```
Create a virtualenv and activate it::
$ python3 -m venv venv
$ . venv/bin/activate
Install flask_cities_api::
$ poetry install .
## Run
```bash
$ python run.py
```
Open http://127.0.0.1:5000 in a browser.