-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplification et factorisation de code (utilisation de dict pour ove…
…rrider des val par défaut) + ajout de docstrings
- Loading branch information
Showing
97 changed files
with
22,329 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
#-*- coding: utf-8 -*- | ||
# NOTE : à exécuter dans un shell Python plutôt que comme un script ! | ||
from manager import Manager | ||
|
||
test_manager = Manager() # avec proxy | ||
test_manager = Manager(how_to_auth='cert') # avec cert | ||
requestedFlightFields = ['flightState', 'cfmuFlightType'] | ||
|
||
other_params = { | ||
'requestedFlightFields': [ | ||
'flightState', | ||
'cfmuFlightType' | ||
] | ||
} | ||
|
||
# démo queryFlightsByAirspace | ||
flight_list = test_manager.queryFlightsByAirspace( | ||
airspace="LFFFTH", | ||
startTime="2019-10-16 17:00", | ||
endTime="2019-10-16 18:30", | ||
requestedFlightFields=requestedFlightFields) | ||
airspace="LFFFTH", | ||
startTime="2019-10-18 17:00", endTime="2019-10-18 18:30", | ||
other_params=other_params) | ||
print(flight_list.data) | ||
|
||
# démo queryFlightsByAerodrome | ||
flight_list = test_manager.queryFlightsByAerodrome( | ||
aerodrome="LFPG", | ||
aerodromeRole="DEPARTURE", | ||
startTime="2019-10-16 17:00", | ||
endTime="2019-10-16 18:30", | ||
requestedFlightFields=requestedFlightFields) | ||
startTime="2019-10-18 17:00", endTime="2019-10-18 18:30", | ||
other_params=other_params) | ||
print(flight_list.data) | ||
|
||
# démo queryFlightsByTrafficVolume | ||
flight_list = test_manager.queryFlightsByTrafficVolume( | ||
trafficVolume='LFFTN', | ||
startTime="2019-10-16 17:00", | ||
endTime="2019-10-16 18:30", | ||
requestedFlightFields=requestedFlightFields) | ||
print(flight_list.data) | ||
|
||
startTime="2019-10-18 17:00", endTime="2019-10-18 18:30", | ||
other_params=other_params) | ||
print(flight_list.data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 4e622732717a105303eaf08e9b3daebe | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
demo module | ||
=========== | ||
|
||
.. automodule:: demo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
dev\_test module | ||
================ | ||
|
||
.. automodule:: dev_test | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. soapy documentation master file, created by | ||
sphinx-quickstart on Fri Oct 18 14:41:13 2019. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Welcome to soapy's documentation! | ||
================================= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
manager module | ||
============== | ||
|
||
.. automodule:: manager | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
soapy | ||
===== | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
demo | ||
dev_test | ||
manager | ||
shared_vars | ||
utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
shared\_vars module | ||
=================== | ||
|
||
.. automodule:: shared_vars | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
utils module | ||
============ | ||
|
||
.. automodule:: utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.