This release is a pre-release and may not be stable for production use.
politico-civic-election-loader
Ingest election metadata and results from outside sources, the POLITICO way.
Quickstart
- Install the app.
$ pip install politico-civic-election-loader
- Add the app to your Django project settings.
INSTALLED_APPS = [
# ...
'rest_framework',
'election_loader',
]
- Migrate the database.
$ python manage.py migrate entity
Developing
Running a development server
Move into the example directory, install dependencies and run the development server with pipenv.
$ cd example
$ pipenv install
$ pipenv run python manage.py runserver
Setting up a PostgreSQL database
- Run the make command to setup a fresh database.
$ make database
- Add a connection URL to
example/.env.
DATABASE_URL="postgres://localhost:5432/electionloader"
- Run migrations from the example app.
$ cd example
$ pipenv run python manage.py migrate
Copyright
© 2019–present POLITICO, LLC
Metadata
Release files for politico-civic-election-loader 1.0a8.dev1
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 |
|---|---|---|---|---|
| politico-civic-election-loader-1.0a8.dev1.tar.gz | 12.5 kB | Without provenance | Details for politico-civic-election-loader-1.0a8.dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| politico_civic_election_loader-1.0a8.dev1-py3-none-any.whl | Python 3 | none | any | Details for politico_civic_election_loader-1.0a8.dev1-py3-none-any.whl |
Total release size: 34.9 kB
Release files / politico-civic-election-loader-1.0a8.dev1.tar.gz
| Download URL | politico-civic-election-loader-1.0a8.dev1.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b41016d5f1e1671d10f35f7c883e7c411b362dbf8b2a83654f466b82d0f7e8c1
|
|
BLAKE2b-256 checksum How to use checksums |
0097c5b73eda20df820a4d256fec930d701782ed79ff30da628b5de843e1acf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11
|
Release files / politico_civic_election_loader-1.0a8.dev1-py3-none-any.whl
| Download URL | politico_civic_election_loader-1.0a8.dev1-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82fcd087a5d1c34564e27259e7a8e25a0a67295d6d80381fae77a8793ac9ea41
|
|
BLAKE2b-256 checksum How to use checksums |
4ed9e1d870b7b7b951d25663206cb884d8b6a8551a26b307e8e9e19d0da4bd0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11
|
Security for politico-civic-election-loader 1.0a8.dev1
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.