Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
catholic-mass-readings
Advanced tools
Provides an API for scraping the web page from https://bible.usccb.org/bible/readings/ to get the readings
Provides an API for scraping the web page from Daily Readings website of United States Conference of Catholic Bishops.
Run scripts/console.sh poetry install
Run scripts/lock.sh
Run scripts/console.sh poetry run python -m catholic_mass_readings
import asyncio
import datetime
from catholic_mass_readings import USCCB, models
# To get a mass for a particular date:
async with USCCB() as usccb:
mass = await usccb.get_mass(datetime.date(2024, 12, 25), models.MassType.VIGIL)
print(mass)
# To query for a range of Sunday masses:
async with USCCB() as usccb:
dates = usccb.get_sunday_mass_dates(datetime.date(2024, 12, 25), datetime.date(2025, 1, 25))
tasks = [usccb.get_mass_from_date(dt, types) for dt in dates]
responses = await asyncio.gather(*tasks)
masses = [m for m in responses if m]
masses.sort(key=lambda m: m.date.toordinal() if m.date else -1)
for mass in masses:
end = "\n" if mass is masses[-1] else "\n\n"
print(mass, end=end)
# To query for a range of masses (step how you want to):
async with USCCB() as usccb:
dates = usccb.get_mass_dates(datetime.date(2024, 12, 25), datetime.date(2025, 1, 25), step=datetime.timedelta(days=1))
tasks = [usccb.get_mass_from_date(dt) for dt in dates]
responses = await asyncio.gather(*tasks)
masses = [m for m in responses if m]
masses.sort(key=lambda m: m.date.toordinal() if m.date else -1)
for mass in masses:
end = "\n" if mass is masses[-1] else "\n\n"
print(mass, end=end)
# To query for a list of all the mass types on a particular date:
async with USCCB() as usccb:
mass_types = await usccb.get_mass_types(datetime.date(2024, 12, 25))
for mass_type in mass_types:
print(mass_type.name)
As a CLI
# To get a mass for a particular date:
python -m catholic_mass_readings get-mass --date 2024-12-25 --type vigil
# To query for a range of Sunday masses:
python -m catholic_mass_readings get-sunday-mass-range --start 2024-12-25 --end 2025-01-01
# To query for a range of masses (step how you want to):
python -m catholic_mass_readings get-mass-range --start 2024-12-25 --end 2025-01-01 --step 7
# To query for a list of mass types on a particular date:
python -m catholic_mass_readings get-mass-types --date 2025-12-25
# or saving to a file...
# To get a mass for a particular date:
python -m catholic_mass_readings get-mass --date 2024-12-25 --type vigil --save mass.json
# To query for a range of Sunday masses:
python -m catholic_mass_readings get-sunday-mass-range --start 2024-12-25 --end 2025-01-01 --save mass.json
# To query for a range of masses (step how you want to):
python -m catholic_mass_readings get-mass-range --start 2024-12-25 --end 2025-01-01 --step 7 --save mass.json
To install catholic-mass-readings from PyPI, use the following command:
$ pip install catholic-mass-readings
You can also clone the repo and run the following command in the project root to install the source code as editable:
$ pip install -e .
The documentation for catholic-mass-readings
can be found here or in the project's docstrings.
FAQs
Provides an API for scraping the web page from https://bible.usccb.org/bible/readings/ to get the readings
We found that catholic-mass-readings demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.