https://github.com/ajhynes7/seven-wonders-duel-api
API for keeping track of scores in Seven Wonders Duel.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.8%) to scientific vocabulary
Repository
API for keeping track of scores in Seven Wonders Duel.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Seven Wonders Duel API
An API for keeping track of scores in Seven Wonders Duel, using FastAPI and PostgreSQL.
Setup
- Create a PostgreSQL database called
seven_wonders_duel. - Install Python >= 3.10.
Install
uv, a package installer for Python.From the root of this repository, install the Python dependencies with
uv.
sh
$ uv venv
$ source .venv/bin/activate
$ uv pip install -r requirements.txt
- Run the FastAPI server.
sh
$ python -m uvicorn app.main:app
Navigate to http://localhost:8000/docs to view the API documentation.
Example requests
Add a game
POST localhost:8000/games
json
{
"date": "2022-12-19"
}
Add a score
POST localhost:8000/scores
json
{
"game_id": 123,
"player_id": 2,
"civilian": 25,
"science": 4,
"commerce": 3,
"guilds": 0,
"wonders": 15,
"tokens": 0,
"coins": 2,
"military": 5
}
Get total scores of a game
GET localhost:8000/scores/total?game_id=123
Owner
- Name: Andrew Hynes
- Login: ajhynes7
- Kind: user
- Location: St. John's NL, Canada
- Company: CoLab Software
- Repositories: 4
- Profile: https://github.com/ajhynes7
GitHub Events
Total
Last Year
Committers
Last synced: 12 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Andrew Hynes | a****s@g****m | 47 |
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- black ^22.8.0 develop
- flake8 ^5.0.4 develop
- isort ^5.10.1 develop
- pandas ^1.4.4 develop
- pre-commit ^2.20.0 develop
- pytest ^7.1.3 develop
- requests ^2.28.1 develop
- fastapi ^0.82.0
- psycopg2-binary ^2.9.3
- python ^3.10
- sqlmodel ^0.0.8
- uvicorn ^0.18.3
- anyio ==4.3.0 development
- certifi ==2024.2.2 development
- cfgv ==3.4.0 development
- click ==8.1.7 development
- distlib ==0.3.8 development
- dnspython ==2.6.1 development
- email-validator ==2.1.1 development
- fastapi ==0.111.0 development
- fastapi-cli ==0.0.2 development
- filelock ==3.14.0 development
- h11 ==0.14.0 development
- httpcore ==1.0.5 development
- httptools ==0.6.1 development
- httpx ==0.27.0 development
- identify ==2.5.36 development
- idna ==3.7 development
- iniconfig ==2.0.0 development
- jinja2 ==3.1.3 development
- markdown-it-py ==3.0.0 development
- markupsafe ==2.1.5 development
- mdurl ==0.1.2 development
- nodeenv ==1.8.0 development
- numpy ==1.26.4 development
- orjson ==3.10.3 development
- packaging ==24.0 development
- pandas ==2.2.2 development
- platformdirs ==4.2.1 development
- pluggy ==1.5.0 development
- pre-commit ==3.7.0 development
- psycopg2-binary ==2.9.9 development
- pydantic ==1.10.15 development
- pygments ==2.18.0 development
- pytest ==8.2.0 development
- python-dateutil ==2.9.0.post0 development
- python-dotenv ==1.0.1 development
- python-multipart ==0.0.9 development
- pytz ==2024.1 development
- pyyaml ==6.0.1 development
- rich ==13.7.1 development
- ruff ==0.4.3 development
- setuptools ==69.5.1 development
- shellingham ==1.5.4 development
- six ==1.16.0 development
- sniffio ==1.3.1 development
- sqlalchemy ==1.4.41 development
- sqlalchemy2-stubs ==0.0.2a38 development
- sqlmodel ==0.0.8 development
- starlette ==0.37.2 development
- typer ==0.12.3 development
- typing-extensions ==4.11.0 development
- tzdata ==2024.1 development
- ujson ==5.9.0 development
- uvicorn ==0.29.0 development
- uvloop ==0.19.0 development
- virtualenv ==20.26.1 development
- watchfiles ==0.21.0 development
- websockets ==12.0 development
- anyio ==4.3.0
- certifi ==2024.2.2
- click ==8.1.7
- dnspython ==2.6.1
- email-validator ==2.1.1
- fastapi ==0.111.0
- fastapi-cli ==0.0.2
- h11 ==0.14.0
- httpcore ==1.0.5
- httptools ==0.6.1
- httpx ==0.27.0
- idna ==3.7
- jinja2 ==3.1.3
- markdown-it-py ==3.0.0
- markupsafe ==2.1.5
- mdurl ==0.1.2
- orjson ==3.10.3
- psycopg2-binary ==2.9.9
- pydantic ==1.10.15
- pygments ==2.18.0
- python-dotenv ==1.0.1
- python-multipart ==0.0.9
- pyyaml ==6.0.1
- rich ==13.7.1
- shellingham ==1.5.4
- sniffio ==1.3.1
- sqlalchemy ==1.4.41
- sqlalchemy2-stubs ==0.0.2a38
- sqlmodel ==0.0.8
- starlette ==0.37.2
- typer ==0.12.3
- typing-extensions ==4.11.0
- ujson ==5.9.0
- uvicorn ==0.29.0
- uvloop ==0.19.0
- watchfiles ==0.21.0
- websockets ==12.0