Skip to main content

Python package for Parity's Secret Store API calls and sessions.

Project description

Secret Store python package

This is a python library for interacting with Parity's secret store. It is an abstraction layer (API) on top of the official secretstore module RPC API and secretstore sessions. Naming conventions follow the underlying APIs'.

The documentation is for this library and its functions. For more information on how Secret Store works, please refer to the Parity wiki. Most of the function descriptions have been copied from there.

Maintainers

Primary: Adam Nagy (@ngyam)

Documentation

Documentation Status

Readthedocs: https://secretstore.readthedocs.io/index.html

Quickstart

pip install secretstore

Then in your project:

from web3 import Web3, HTTPProvider
from secretstore import SecretStore


web3 = Web3(HTTPProvider("http://127.0.0.1:8545"))

# endpoint exposed by your Secret Store
ss = SecretStore(web3, "http://127.0.0.1:8090")

# secretstore API calls
ss.something..

# secretstore session calls
ss.session.something..

If you wonder how to set up a Secret Store cluster, check out the official config guide and peek into the nodes_ss_dev/ folder.

Examples

You can see some examples amongst the tests.

Contributing

Please read contributing and our code of conduct for details.

Getting started (as a dev)

Prerequisites

  • Python 3.5+

Installing

git clone https://github.com/energywebfoundation/secretstore-py.git
pip install -e .[dev]

Running the tests

ACHTUNG: make sure to start the local secret store cluster first.

  1. start nodes
cd nodes_ss_dev
./start.sh
  1. run tests
cd tests
python3 -m unittest
  1. When done fiddling around:
cd nodes_ss_dev && ./stop.sh

Versioning

We use SemVer for versioning. Version number is bumped with bumpversion tool.

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

Acknowledgments

  • Special thanks to Parity

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secretstore-0.0.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secretstore-0.0.2-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file secretstore-0.0.2.tar.gz.

File metadata

  • Download URL: secretstore-0.0.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

File hashes

Hashes for secretstore-0.0.2.tar.gz
Algorithm Hash digest
SHA256 49440fa5ec5392f88af85acf38dc0f46c29bc6424bd232ac5b0198d658d4713d
MD5 f407e772b32df4cb9c05690cd233d60d
BLAKE2b-256 8f5f53892b469c6194838d9e8b2484c816db4c84f355571c8702d58d57a8ff4d

See more details on using hashes here.

File details

Details for the file secretstore-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: secretstore-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

File hashes

Hashes for secretstore-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 657303508ae49f564dcee49ff688a331ae3c0ca237cfc9ac3a6e8fe0585d7404
MD5 66bb1f43ed231a9bdaaf50184ed7da25
BLAKE2b-256 fd996b22a26d4132f8be1c44781662f5b9e1069cf3d556d22814569e0e9ecf18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page