-
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.
Reorder functionality and blacken the code
* Used formatter black on code * Remove test folder as it only contained a pseudo test to run the main part of the package * Changed setup.py to run toplevel imported function * Updated readme to explain usage of the package * Updated package dependencies as I removed requests as external dependency
- Loading branch information
1 parent
8b824ad
commit fc80701
Showing
9 changed files
with
146 additions
and
122 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,3 +1,27 @@ | ||
# park-vorhersage | ||
|
||
Dies ist ein Repository, um die Parkhaus-/Parkplatzdaten der Osnabücker Parkstätten Betriebsgesellschaft (OPG) zu analysieren. | ||
Dies ist ein Repository, um die Parkhaus-/Parkplatzdaten der Osnabücker | ||
Parkstätten Betriebsgesellschaft (OPG) zu analysieren. | ||
|
||
|
||
## Usage | ||
|
||
Wenn ihr das Paket benutzen möchtet, müsst ihr Folgendes tun: | ||
|
||
```python | ||
import park_vorhersage as pv | ||
|
||
pv.init() | ||
pv.scrape_and_store() | ||
``` | ||
|
||
Der oben stehende Code importiert das Paket, die `init()` Funktion erstellt | ||
eine Datenbank und die `scrape_and_store()` Funktion stellt die eigentliche | ||
Hauptaktion des Paketes zur Verfügung. | ||
|
||
Da der zentrale Bestandteil des Paketes nur das Abgreifen und speichern der | ||
Daten der OPG Website ist, ist diese Funktion besonders einfach zu erreichen. | ||
Solltet ihr das Paket über PIP installiert haben, wird ein sogenannter | ||
"Entry Point" generiert. Hierdurch könnt ihr nach der Installation einfach | ||
den Befehl `parkvorhersage` auf der Kommandozeile ausführen und es wird | ||
automatisch die Funktion `scrape_and_store()` ausgeführt. |
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,7 +1,5 @@ | ||
name: codefor | ||
|
||
dependencies: | ||
- BeautifulSoup4 | ||
- pytz | ||
- requests | ||
- sqlalchemy |
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
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,4 +1,2 @@ | ||
BeautifulSoup4 | ||
pytz | ||
requests | ||
sqlalchemy |
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 was deleted.
Oops, something went wrong.