semvec/pypi-packages huggingface dataset:
jasmine-eth 0.0.5
Jasmine Project Ethereum SDK (Python)
Requires Python: >=3.6

# Jasmine Project Ethereum SDK (Python)

This SDK provides the following functionalities: 
1. Create/retrieve new/existing Ethereum accounts
2. Transfer ETH and query ETH balance
3. Deploy TFCManager smart contracts along with TFCToken ERC20 contracts.
4. Claim TFC token through TFCManager using a signature signed by the TFCManager deployer account.
Signing functionality is not provided in this SDK by now. 
Alternatively, use [Golang SDK](https://github.com/Troublor/jasmine-eth-go) or [JavaScript SDK](https://github.com/Troublor/jasmine-eth-go).
5. Perform [ERC20 standard](https://eips.ethereum.org/EIPS/eip-20) actions on TFC ERC20 token, including transfer, transferFrom and approve.

## Installation

Requires Python `>=3.6`

```bash
pip install jasmine_eth
```

## Usage

Instantiate an SDK object using Ethereum endpoint: 
```python
from jasmine_eth import SDK
sdk = SDK("http://localhost:8545")
```

Create/retrieve an Ethereum account
```python
private_key = "0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d"
account = sdk.retrieve_account(private_key) # retrieve account using private key
account = sdk.create_account() # create a new account
print(account.address) # Ethereum address
print(account.private_key) # account private key
```

Deploy TFCManager contract, which will implicitly deploy TFCToken ERC20 contract. 
```python
# make sure the account have enough ETH balance to deploy contracts
manager_address = await sdk.deploy_tfc_manager(account) 
```

Get the TFCManager contract instance and TFCToken contract instance:
```python
manager = sdk.get_tfc_manager(manager_address)
tfc_erc20_address = manager.tfc_token_address()
tfc = sdk.get_tfc_token(tfc_erc20_address)
```

Claim TFC: 
```python
amount: int = 1000000000000000000 # 1 TFC
nonce: int = 0
signature: str = "0x6b04573d9a5b813e65b7afc77ca931bf1a5787ed1732622034355c75b39fe934194501f3431b2fed46581eaa486cdb636eebcb7f852d2105af4a4b53a25dd27e1c"
# account claim the amount of TFC using signature signed by TFCManager deployer
await manager.claim_tfc(amount, nonce, signature, account)
```

Get TFC balance
```python
balance: int = tfc.balance_of(account.address)
```

Transfer TFC
```python
amount: int = 1000000000000000000 # 1 TFC
await tfc.transfer(recipient_account.address, amount, account)
await tfc.approve(spender_account.address, amount, account)
await tfc.transfer_from(account.address, recipient_account.address, amount, spender_account)
```

**Note: All methods that involve sending transactions are `async` functions and should be awaited.**
onegramcoin 1.0.5
Python library for onegram
Keywords: onegram,library,api,rpc

# Python Library for BitShares

![](https://img.shields.io/pypi/v/bitshares.svg?style=for-the-badge)
![](https://img.shields.io/github/release/xeroc/python-bitshares.svg?style=for-the-badge)
![](https://img.shields.io/github/downloads/xeroc/python-bitshares/total.svg?style=for-the-badge)
![](https://img.shields.io/pypi/pyversions/bitshares.svg?style=for-the-badge)
![](https://img.shields.io/pypi/l/bitshares.svg?style=for-the-badge)

**Stable**

[![docs master](https://readthedocs.org/projects/python-bitshares/badge/?version=latest)](http://python-bitshares.readthedocs.io/en/latest/)
[![Travis master](https://travis-ci.org/xeroc/python-bitshares.png?branch=master)](https://travis-ci.org/xeroc/python-bitshares)
[![codecov](https://codecov.io/gh/xeroc/python-bitshares/branch/master/graph/badge.svg)](https://codecov.io/gh/xeroc/python-bitshares)

**Develop**

[![docs develop](https://readthedocs.org/projects/python-bitshares/badge/?version=develop)](http://python-bitshares.readthedocs.io/en/develop/)
[![Travis develop](https://travis-ci.org/xeroc/python-bitshares.png?branch=develop)](https://travis-ci.org/xeroc/python-bitshares)
[![codecov develop](https://codecov.io/gh/xeroc/python-bitshares/branch/develop/graph/badge.svg)](https://codecov.io/gh/xeroc/python-bitshares)

---

## Documentation

Visit the [pybitshares website](http://docs.pybitshares.com/en/latest/) for in depth documentation on this Python library.

## Installation

### Install with pip3:
```
$ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
$ pip3 install bitshares
```

### Manual installation:
```
$ git clone https://github.com/xeroc/python-bitshares/
$ cd python-bitshares
$ python3 setup.py install --user
```

### Upgrade
```
$ pip3 install --user --upgrade
```
onegramlib 1.0.7
Python library for OneGram project graphene-based blockchains
Keywords: onegram,api,rpc,ecdsa,secp256k1

Python Library for OneGram
===========================

Python 3 library for OneGram!

Installation
------------

Install with `pip`:

    $ sudo apt-get install libffi-dev libssl-dev python-dev
    $ pip3 install onegramlib

Manual installation:

    $ git clone git@gitlab.com:onegram-developers/python-onegramlib.git
    $ cd python-onegramlib
    $ python3 setup.py install --user

Dependencies
------------

Some dependencies are not required for parts of the library to run
properly. However these modules require some additional libraries to be
present:

* `graphenebase.bip38`
   * `pycrypto==2.6.1`
   * `scrypt==0.7.1` (to speedup scrypt hashing)
* `graphenebase.memo`
   * `pycrypto==2.6.1`

Upgrade
-------

    $ pip install --user --upgrade onegramlib

Documentation
-------------

Thanks to readthedocs.io, the documentation can be viewed
[online](http://python-graphenelib.readthedocs.io/en/latest/)

Documentation is written with the help of sphinx and can be compile to
html with:

    cd docs
    make html

Licence
-------

MIT, see `LICENCE.txt`