Add shell.nix and test program

This commit is contained in:
coolneng 2020-05-21 17:21:36 +02:00
parent b06c3ed623
commit 3ec2ad16b7
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 38 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
app/__pycache__

16
app/dummy_request.py Normal file
View File

@ -0,0 +1,16 @@
from requests import get
def dummy_request(url):
request = get(url)
print(request.text)
def main():
dummy_request(
"https://opendata.paris.fr/api/records/1.0/search/?dataset=velib-disponibilite-en-temps-reel&q=&facet=name&facet=is_installed&facet=is_renting&facet=is_returning&facet=nom_arrondissement_communes"
)
if __name__ == "__main__":
main()

21
shell.nix Normal file
View File

@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs.python37Packages;
pkgs.mkShell {
buildInputs = [
# Dependencies
pandas
requests
flask
altair
pytest
# Development tools
black
isort
pyflakes
python-language-server
pyls-black
pyls-isort
];
}