nyc_ai_events
Python package that returns a structured list of NYC-based AI events.
Planned data sources
- Eventbrite API (requires
EVENTBRITE_TOKEN) - HTML scraping fallback (BeautifulSoup4)
- AI-driven extraction placeholder (disabled by default)
Dev quickstart (once Poetry is installed)
- Initialize (src layout):
poetry new nyc_ai_events --src - Or initialize in an existing folder:
poetry init
Point Poetry to PyPy 3
poetry env use pypy3- Or:
poetry env use $(command -v pypy3)
Install dependencies
poetry add requests beautifulsoup4 lxml- Dev/test deps:
poetry add --group dev pytest pytest-mock responses
Run tests
poetry run pytest
Build for distribution
poetry build
CLI
- Poetry:
poetry run nyc-ai-events --limit 10 --source auto - Without Poetry (uses this repo's venv Python):
PYTHONPATH=src NYC_AI_EVENTS_ENABLE_SCRAPE=1 ./.venv/bin/python -m nyc_ai_events.cli --source scrape --limit 10PYTHONPATH=src NYC_AI_EVENTS_ENABLE_SCRAPE=1 ./.venv/bin/python -m nyc_ai_events.cli --source auto --limit 10
Note: don’t paste commands where python appears as a clickable markdown link like [python](...) (that text is not a real executable).
Install locally in another project (for testing)
Option A: pip editable
- From the other project:
pip install -e /absolute/path/to/PyPack_EventBrite
Option B: poetry add path
- From the other project:
poetry add --editable /absolute/path/to/PyPack_EventBrite
Install from PyPI (once published)
pip install nyc-ai-events- Then run:
nyc-ai-events --limit 10 --source auto
Release to PyPI (maintainers)
This repo is set up to publish on git tags like v0.1.0 via GitHub Actions.
- Create a PyPI account and enable 2FA.
- Create a PyPI API token.
- Add it to this GitHub repo as an Actions secret named
PYPI_API_TOKEN. - Push a version tag like
v0.1.0to publish.
Public API
nyc_ai_events.get_nyc_ai_events()→list[dict]with keys:name,date,location,link
License
MIT (see LICENSE).
Metadata
Release files for nyc-ai-events 0.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 | |
|---|---|---|---|
| nyc_ai_events-0.1.0.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nyc_ai_events-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / nyc_ai_events-0.1.0.tar.gz
| Download URL | nyc_ai_events-0.1.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
407750d236ee651240a1d7070a2746d643e6e5ae317829575aee009ca660b2fc
|
|
BLAKE2b-256 checksum How to use checksums |
22e790775ea14cdc56217a51ecc1e7b006db49121f5e64190aa5858d237a3353
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / nyc_ai_events-0.1.0-py3-none-any.whl
| Download URL | nyc_ai_events-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
deafbe40a3ac9f1dc8ff06cce034b07649fa36a9fa4e5990652f121702c6e867
|
|
BLAKE2b-256 checksum How to use checksums |
a112266aa54b064b6f0897be735df09f4a7fe247867121a6e83287603a48d25e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|