https://github.com/josdem/py-vetlog-analyzer
Data analysis for Vetlog database
https://github.com/josdem/py-vetlog-analyzer
black coverage mysql poetry pymox python unittest
Last synced: 26 days ago
JSON representation
Data analysis for Vetlog database
- Host: GitHub
- URL: https://github.com/josdem/py-vetlog-analyzer
- Owner: josdem
- Created: 2024-04-12T23:42:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-24T18:47:24.000Z (7 months ago)
- Last Synced: 2024-10-25T17:08:28.580Z (7 months ago)
- Topics: black, coverage, mysql, poetry, pymox, python, unittest
- Language: Python
- Homepage: https://vetlog.org/
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Python Vetlog Analyzer
[](#contributors-)
[](https://github.com/josdem/py-vetlog-analyzer/actions)
[](https://sonarcloud.io/summary/new_code?id=josdem_py-vetlog-analyzer)##
Data analysis for [Vetlog](https://vetlog.org/) database
#### Requirements
- Python version `3.12.3` or above
#### To install dependencies
```bash
poetry install
```#### To format code
```bash
python -m black "py_vetlog_analyzer" "tests"
```#### To run tests
```bash
python -m unittest discover -s tests
```#### To run a single test
```bash
python -m unittest tests/${test_name}.py
```Where:
- `${test_name}.py` is the test name you want to run#### To run with poetry
```bash
poetry run filterByUsername
poetry run filterByName
poetry run suspicious
poetry run vaccines
```**Where:**
- `filter` Filters invalid users from the database
- `suspicious` Filters suspicious users (Maybe invalid users) from the database
- `vaccines` Generates expected vaccination records for pets without pending vaccination plan#### To run coverage
```bash
coverage run -m unittest discover
coverage report -m
coverage html
```#### Configuration
https://github.com/josdem/py-vetlog-analyzer/wiki
#### PyPi project
https://pypi.org/project/py-vetlog-analyzer/
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!