Skip to main content

GitHub GitHub code size in bytes PyPI PyPI - Python Version PyPI - Format

abalin_nameday

Simple Python wrapper for the International NameDay API @ https://api.abalin.net

Installation

Use the package manager pip to install abalin_nameday.

pip install abalin_nameday

Usage

import abalin_nameday
myClient = abalin_nameday.namedayRequestor(country, timezone)
print(json.dumps(json.loads(myClient.GetData()), indent=2, sort_keys=True))

Explanation

country: one of the countries from this list:

['cz','sk','pl','fr','hu','hr','se','us','at','it','es','de','dk','fi','bg','lt','ee','lv','gr','ru']

timezone: One of the time zones from this list:

'America/Denver',
'America/Costa_Rica',
'America/Los_Angeles',
'America/St_Vincent',
'America/Toronto',
'Europe/Amsterdam',
'Europe/Monaco',
'Europe/Prague',
'Europe/Isle_of_Man',
'Africa/Cairo',
'Africa/Johannesburg',
'Africa/Nairobi',
'Asia/Yakutsk',
'Asia/Hong_Kong',
'Asia/Taipei',
'Pacific/Midway',
'Pacific/Honolulu',
'Etc/GMT-6',
'US/Samoa',
'Zulu',
'US/Hawaii',
'Israel',
'Etc/GMT-2',

If the call is successful, abalin_nameday returns a string that contains today's date and name day in the selected country. It also contains version information about itself.

See the documentation of the actual API for up to date list of countries/time zones supported.

Sample response from owm2json:

{
  "module": {
    "version": "0.0.1"
  },
  "namedays": {
    "data": {
      "dates": {
        "day": 5,
        "month": 4
      },
      "namedays": {
        "hu": "Vince"
      }
    }
  }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU General Public License v3.0

Metadata

Release files for abalin-nameday 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for abalin-nameday 0.0.4
File Size Uploaded Provenance Actions
abalin_nameday-0.0.4.tar.gz 15.4 kB Without provenance Details for abalin_nameday-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for abalin-nameday 0.0.4
File Interpreter ABI Platform Actions
abalin_nameday-0.0.4-py3-none-any.whl Python 3 none any Details for abalin_nameday-0.0.4-py3-none-any.whl

Total release size: 31.2 kB

Release files / abalin_nameday-0.0.4.tar.gz

Download URL abalin_nameday-0.0.4.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f408910b218a212ab7de61eaa88a8dfa50603849f3e0ba1ad1aa223960b661e8
BLAKE2b-256 checksum
How to use checksums
68620819dec1c32f58a36580b592272dc8609f0de2aa4ed37c261e2a45d4c8af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

Release files / abalin_nameday-0.0.4-py3-none-any.whl

Download URL abalin_nameday-0.0.4-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
255a10fdfa46e2a3fb48f24f8fc89098d031ef92c7513891acb1e039dac07b41
BLAKE2b-256 checksum
How to use checksums
d9e7db6d1b084001b369a7784be9dbaa3dcac1ee0d0e41288f0b164ea8b866d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

Security for abalin-nameday 0.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page