Python implementation of [Earthstar](https://earthstar-project.org/)
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
earthsnake | 1 year ago | |
mypy-stubs/fastjsonschema | 1 year ago | |
tests | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.rst | 1 year ago | |
poetry.lock | 1 year ago | |
pyproject.toml | 1 year ago |
README.rst
Python implementation of Earthstar
WARNING!
This library is very limited in functionality, and is under active development. Be prepared for things to break.
Usage
Create an identity and save it as a mnemonic:
from earthsnake import Identity
= Identity('test')
identity = identity.mnemonic mnemonic
Then you can load it back from the mnemonic:
= Identity.from_mnemonic(mnemonic) identity
Development
Type checking:
env MYPYPATH=mypy-stubs poetry run mypy --strict earthsnake tests
Static linting:
poetry run pylint earthsnake tests
Code style check:
poetry run black --diff --skip-string-normalization earthsnake tests
Tests:
poetry run pytest -vv --cov=. tests