sopn-publish-date
Given the polling day of an election in the UK, when should the Statement of Persons Nominated (SoPN) be published?
When an election is called in the United Kingdom, the voting public must have access to the list of candidates who have been nominated to that post.
These documents are called Statements of Persons Nominated, and must be published a set number of working days ahead of the actual election date. The number varies based on:
- Type of Post - Parliamentary, Local, devolved Government, etc.
- Country - The United Kingdom has up to four different rules for the same type of election, one for each country.
- Calendar - each country has their own unique set of Bank Holidays.
This library encapsulates timetable legislation for elections run in the United Kingdom and its devolved administrations.
Usage
from sopn_publish_date import StatementPublishDate
from datetime import date
publish_date = StatementPublishDate()
print(publish_date.national_assembly_for_wales(date(2016, 5, 5)))
# datetime.date(2016, 4, 7)
Documentation
Hosted by readthedocs at https://sopn-publish-date.readthedocs.io/
Installation
pip install sopn_publish_date
Test
python -m pytest -v
Supported Election Types
- Local
- United Kingdom Parliament
- Scottish Parliament
- National Assembly for Wales
- Northern Ireland Assembly
- Mayoral
- Mayoral (London)
- European Parliament
- Greater London Assembly
- Police and Crime commissioner
Metadata
Release files for sopn-publish-date 1.4.3
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 |
|---|---|---|---|---|
| sopn-publish-date-1.4.3.tar.gz | 8.8 kB | Without provenance | Details for sopn-publish-date-1.4.3.tar.gz |
Release files / sopn-publish-date-1.4.3.tar.gz
| Download URL | sopn-publish-date-1.4.3.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a47926423969e526af8f35527f5d017dce40002204c9983649261396d9df123b
|
|
BLAKE2b-256 checksum How to use checksums |
fc13b4d1f8757eda5211b9126f3a5c052e213fbd999b26b7a4ff979c363e8a9c
|
| 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.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
|
Security for sopn-publish-date 1.4.3
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.