File size: 1,153 Bytes
425bee2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# Postly
This repository contain the Postly client, which serves as a micro-message communication platform, similar to Twitter.
## Getting started
Implemented client requires only Python 3.x, no additional requirements.
To use client, simply do something like this:
```
from postly.clients import PostlyClient
postly_instance = PostlyClient()
```
## Testing
For this project, we perform continuous integration to make sure that code is tested and formatted appropriately:
| Build Type | Status |
| - | - |
| **Unit tests** | [](https://github.com/andreped/postly/actions) |
To perform unit tests, you need to install `pytest`. For running formatting checks you also need `flake8`, `isort`, and `black`. We also depend on `pydantic` for type validation. To do so, lets configure a virtual environment:
```
python -m venv venv/
source venv/bin/activate
pip install -r requirements.txt
```
Then run this command to perform unit tests:
```
pytest -v tests/
```
To perform formatting checks, run the following:
```
sh shell/lint.sh
```
## License
This project has MIT license.
|