ogplc
High-Level Database Client for OpenGov Permitting & Licensing
install
pip install ogplc
cli usage
# dump to a datasets folder
ogplc dump --username="myusername" --password="mypassword" --server="myserver" --database="mydatabase" --output="$PWD/datasets"
python usage
import ogplc
ogplc.dump(
server = "server_host",
database = "database_name",
username = "username",
password = "password",
# folder where to save output files
output = "/home/users/documents/datasets",
# optional parameters below
driver = "SQL Server",
# only include these record types in results
record_types = ["Skyscraper Permit"],
# exclude these record types from results
skip_record_types = ["Orchard Permit"],
# maximum number of rows in output dataset for each record type
max_rows = 1000,
# number of seconds to wait between database queries
wait = 0,
# remove new line from databse results
# this can help improve readibility
remove_new_lines = True,
# delimiter to pass to csv writer
delimiter = ",",
# logging level
debug_level = 1
)
Metadata
Release files for ogplc 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ogplc-0.0.1.tar.gz | 9.0 kB | Without provenance | Details for ogplc-0.0.1.tar.gz |
Release files / ogplc-0.0.1.tar.gz
| Download URL | ogplc-0.0.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d2be993b25180c9f09dcf705fdbbfd898c5e40ca12d539a9bf57466d03f5d4b
|
|
BLAKE2b-256 checksum How to use checksums |
9294e4fb613293d013068d97a160357b1d78c03dfa0aa8345ac888799b319d82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Security for ogplc 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.