This is a simple API for Yamanashi Tech Events. It retrieves event data from Connpass via API.
This API is available at the following URL.
https://api.event.yamanashi.dev
- Python 3.9 or later
- Redis
- Clone the repo
git clone https://github.com/yuukis/yamanashi-events-api.git
- Install Python packages
pip install -r requirements.txt
- Copy
.env.example
to.env
and set environment variablesREDIS_URL=redis://localhost:6379
- Run the app
uvicorn app.main:app --reload
- Access to http://localhost:8000
If you have Docker and Docker Compose installed, you can use the following steps to get the project running:
-
Clone the repo
git clone https://github.com/yuukis/yamanashi-events-api.git
-
Build and run the Docker services
docker-compose up --build
-
Access to http://localhost:8000
-
Get recent events
curl http://localhost:8000/events
-
Get today's events
curl http://localhost:8000/events/today
-
Get events by year/month
curl http://localhost:8000/events/in/2023/12
-
Get events by date range
curl http://localhost:8000/events/from/2023/12/to/2024/02
-
Get events by keyword
curl http://localhost:8000/events?keyword=Python
See API document for more details.
Distributed under the Apache License, Version 2.0. See LICENSE
for more information.
Yuuki Shimizu - @yuuki_maxio
- shingen.py
- python user community in Yamanashi, Japan
- Connpass