Python client for IERS-OP web service
It answers the following questions:
What is the current difference between TAI and UTC?
When was the last leap second?
When is the next leap second?
Usage
As a library:
>>> from leap_second_client import request_leap_second_info
>>> request_leap_second_info()
LeapSecondInfo(TAI_UTC=36,
last_leap_second=datetime.date(2015, 6, 30),
next_leap_second=None)
Or as a command-line client (greppable json output):
$ python -m leap_second_client
{
"TAI_UTC": 36,
"last_leap_second": "2015-06-30",
"next_leap_second": null
}
It gives the current value of TAI-UTC in (integer) seconds, the date of the last leap second and the date of the next leap second. If no leap second is scheduled, then the value is None. The webservice relies on the information of the last Bulletin C and the current date.
See http://hpiers.obspm.fr/eop-pc/index.php?index=webservice
Installation
No dependencies except Python itself and the webservice. To install, just download leap_second_client.py or run:
$ pip install leap_second_client
Support: Python 2.6+, Python 3.
License: MIT
Metadata
Release files for leap-second-client 1.0
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 |
|---|---|---|---|---|
| leap_second_client-1.0.tar.gz | 4.5 kB | Without provenance | Details for leap_second_client-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| leap_second_client-1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for leap_second_client-1.0-py2.py3-none-any.whl |
Total release size: 9.7 kB
Release files / leap_second_client-1.0.tar.gz
| Download URL | leap_second_client-1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39d9e4d8c7843bd1d9acf2bbce40341a32356f1e858419b64be438fd31c7d465
|
|
BLAKE2b-256 checksum How to use checksums |
3f17e595e29de7936da4a4fdbc14b8b55689702badd76d14ead00772a6fe3237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / leap_second_client-1.0-py2.py3-none-any.whl
| Download URL | leap_second_client-1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ecb8b5ce29ee36fc4ab8e97c4d1032ae43e76a635d261aa4e0deeea3c48bf61b
|
|
BLAKE2b-256 checksum How to use checksums |
0918c86466f508c2c3abb5bf9419bd1c7224d8ea71b93212c432f383c9aa2185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for leap-second-client 1.0
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.