Added README
Browse files
README.md
CHANGED
|
@@ -1 +1,44 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Postly
|
| 2 |
+
|
| 3 |
+
This repository contain the Postly client, which serves as a micro-message communication platform, similar to Twitter.
|
| 4 |
+
|
| 5 |
+
## Getting started
|
| 6 |
+
|
| 7 |
+
Implemented client requires only Python 3.x, no additional requirements.
|
| 8 |
+
|
| 9 |
+
To use client, simply do something like this:
|
| 10 |
+
```
|
| 11 |
+
from postly.clients import PostlyClient
|
| 12 |
+
|
| 13 |
+
postly_instance = PostlyClient()
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
## Testing
|
| 17 |
+
|
| 18 |
+
For this project, we perform continuous integration to make sure that code is tested and formatted appropriately:
|
| 19 |
+
|
| 20 |
+
| Build Type | Status |
|
| 21 |
+
| - | - |
|
| 22 |
+
| **Unit tests** | [](https://github.com/andreped/postly/actions) |
|
| 23 |
+
|
| 24 |
+
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:
|
| 25 |
+
```
|
| 26 |
+
python -m venv venv/
|
| 27 |
+
source venv/bin/activate
|
| 28 |
+
|
| 29 |
+
pip install -r requirements.txt
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
Then run this command to perform unit tests:
|
| 33 |
+
```
|
| 34 |
+
pytest -v tests/
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
To perform formatting checks, run the following:
|
| 38 |
+
```
|
| 39 |
+
sh shell/lint.sh
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## License
|
| 43 |
+
|
| 44 |
+
This project has MIT license.
|