aelf-api-client
An unofficial Python client for interacting with the AELF API. This library provides an easy-to-use interface for fetching liturgical information from the AELF API.
Table of contents
Features
- Fetch liturgical information for a specific date and zone.
- Retrieve liturgical entities (
masses,complines,lauds,readings,none,sext,terceorvespers) for a specific date and zone. - Built with
aiohttpfor asynchronous requests. - Validates API responses using
pydanticmodels.
Installation
Package is directly available from the Pypi repositories:
pip install aelf-api-client
Usage
Example: Fetch masses informations
from datetime import datetime
import asyncio
from aelf_api_client import AELFClient
from aelf_api_client.schemas.enums import ZoneEnum, EntityEnum
from aelf_api_client.schemas.responses import MassesResponseModel
async def main():
client = AELFClient()
date = datetime.now()
zone = ZoneEnum.FRANCE
masses: MassesResponseModel
# 2 ways to fetch a liturgical entity:
masses = await client.request_masses(date=date, zone=zone)
# or
masses = await client.request(entity=EntityEnum.MASS, date=date, zone=zone)
print(masses)
asyncio.run(main())
Available Methods:
The AELFClient provides the following methods:
request(entity: EntityEnum, date: datetime, zone: ZonesEnum): Fetch any liturgical entity for a given day and zonerequest_informations(date: datetime, zone: ZonesEnum): Fetch informations for a given day and zonerequest_masses(date: datetime, zone: ZonesEnum): Fetch masses for a given day and zonerequest_complines(date: datetime, zone: ZonesEnum): Fetch comlines for a given day and zonerequest_lauds(date: datetime, zone: ZonesEnum): Fetch lauds for a given day and zonerequest_readings(date: datetime, zone: ZonesEnum): Fetch readings for a given day and zonerequest_none(date: datetime, zone: ZonesEnum): Fetch none for a given day and zonerequest_sext(date: datetime, zone: ZonesEnum): Fetch sext for a given day and zonerequest_terce(date: datetime, zone: ZonesEnum): Fetch terce for a given day and zonerequest_vespers(date: datetime, zone: ZonesEnum): Fetch vespers for a given day and zone
Each method fetches data for a specific liturgical entity and returns a validated Pydantic response model.
Development
Setting Up the Local Environment
git clone git@github.com:thamin-i/aelf-api-client.git
cd aef-client
make install
Running Tests
Tests are written using pytest. To run the tests:
poetry run pytest
Code Formatting and Linting
This project uses ruff, isort, and pylint for formatting and linting. To check the code:
make format_code && make check_code
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Write tests for your changes.
- Run the tests to ensure everything works.
- Submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Links
- Pypi: Project
- Homepage: AELF Python Client
- Issues: https://github.com/thamin-i/aelf-api-client/issues
Metadata
Release files for aelf-api-client 1.3.5
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 |
|---|---|---|---|---|
| aelf_api_client-1.3.5.tar.gz | 8.4 kB | Without provenance | Details for aelf_api_client-1.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aelf_api_client-1.3.5-py3-none-any.whl | Python 3 | none | any | Details for aelf_api_client-1.3.5-py3-none-any.whl |
Total release size: 23.8 kB
Release files / aelf_api_client-1.3.5.tar.gz
| Download URL | aelf_api_client-1.3.5.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d46c168849b40789b54fa85cd511e29f108245b9237996900f011f5628a453bc
|
|
BLAKE2b-256 checksum How to use checksums |
9ef6be2e868c58f1783e713f97c8741579ac0c472aac04c539256fe398071476
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.11 Linux/6.11.0-1018-azure
|
Release files / aelf_api_client-1.3.5-py3-none-any.whl
| Download URL | aelf_api_client-1.3.5-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b46d34613eb7e410ad59816beeab547c702edad4076f4668e11b619ce38d836
|
|
BLAKE2b-256 checksum How to use checksums |
c058ddee80fabde286bb081a003f0537cfbf1322b991e45745a0ec72d27411c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.11 Linux/6.11.0-1018-azure
|
Security for aelf-api-client 1.3.5
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.