eospyabi


Nameeospyabi JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/MajicGit/eospyABI
SummaryPython library for the eos.io REST API
upload_time2024-02-22 13:00:54
maintainer
docs_urlNone
authorMajicGit
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # eospyabi library
Updated version of eospy to no longer rely on API calls to serialize data. Integrates https://github.com/stuckatsixpm/antelopy to serialize instead.
Should be usable as a drop-in replacement.

## eospy readme:

This library is still a work in progress but currently has the ability to perform all `cleos get` functions without compiling the code.

The library now supports signing transactions/key creation for both python 2.7 and 3.x. This is the first iteration and is very rough. The key creation has not been tested fully and should be used at your own risk.

The commands currently implemented.

```
Subcommands:
  get
    info                        Get current blockchain information
    block                       Retrieve a full block from the blockchain
    account                     Retrieve an account from the blockchain
    code                        Retrieve the code and ABI for an account
    abi                         Retrieve the ABI for an account
    table                       Retrieve the contents of a database table
    currency                    Retrieve information related to standard currencies
    accounts                    Retrieve accounts associated with a public key
    servants                    Retrieve accounts which are servants of a given account
    transaction                 Retrieve a transaction from the blockchain
    actions                     Retrieve all actions with specific account name referenced in authorization or receiver
  push
    action                      Push a transaction with a single action
  set
    abi                         Create or update the abi on an account
    code                        Create or update the code on an account
    contract                    Create or update the contract on an account
  system
    newaccount                  Create an account, buy ram, stake for bandwidth for the account
    listproducers               List producers
```

This library is very much a work in progress.

## Installation

### Linux

```
pip install eospyabi
```

### Windows

1. Install python
   You can use either Python 2.7 or 3.7 however we suggest python 3.7 as we have tested that version more thoroughly.
   https://www.howtogeek.com/197947/how-to-install-python-on-windows/
   [Python 3.7](https://www.python.org/downloads/release/python-370/)

2. Install git
   https://www.atlassian.com/git/tutorials/install-git

```
# install from pip
pip install eospyabi
```

## API Endpoints

For a more complete list of API endpoints check out:

https://www.eosdocs.io/resources/apiendpoints/

## Command line Tool Examples

```
# Get chain information
pycleos --url https://api.eosnewyork.io get info

# get information about a block
pycleos --url https://api.eosnewyork.io get block 447

# Retrieve an account from the blockchain
pycleos --url https://api.eosnewyork.io get account --account eosio

# Retrieve the code and ABI for an account
pycleos --url https://api.eosnewyork.io get code --account eosio

# Retrieve the ABI for an account
pycleos --url https://api.eosnewyork.io get abi --account eosio

# Retrieve the contents of a database table
pycleos --url https://api.eosnewyork.io get table --code eosio --scope eosio --table producers

# Retrive currency information
pycleos --url https://api.eosnewyork.io get currency balance --code eosio.token --symbol EOS --account aaaaaaaaaaaa
pycleos --url https://api.eosnewyork.io get currency stats --code eosio.token --symbol EOS

# get accounts associated with public key
pycleos --url https://api.eosnewyork.io get accounts --key EOS52gpRqAPfggYHLXbMuC4TSQd8WWWo94KrMq4umgUcjM62Y2dWF

# get transaction information
pycleos --url https://api.eosnewyork.io get transaction --transaction 42dacd5722001b734be46a2140917e06cd21d42425f927f506c07b4388b07f62

# get account actions
pycleos --url https://api.eosnewyork.io get actions --account aaaaaaaaaaaa

```

## Examples

Check out the examples directory for some examples of how to use the library

## Testeos

Coming soon...

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MajicGit/eospyABI",
    "name": "eospyabi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "MajicGit",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/ce/48/dee042169c5dd2759f66bfd9d8871e3c5f79ed432dbe250a10104fdb06b9/eospyabi-0.2.0.tar.gz",
    "platform": null,
    "description": "# eospyabi library\nUpdated version of eospy to no longer rely on API calls to serialize data. Integrates https://github.com/stuckatsixpm/antelopy to serialize instead.\nShould be usable as a drop-in replacement.\n\n## eospy readme:\n\nThis library is still a work in progress but currently has the ability to perform all `cleos get` functions without compiling the code.\n\nThe library now supports signing transactions/key creation for both python 2.7 and 3.x. This is the first iteration and is very rough. The key creation has not been tested fully and should be used at your own risk.\n\nThe commands currently implemented.\n\n```\nSubcommands:\n  get\n    info                        Get current blockchain information\n    block                       Retrieve a full block from the blockchain\n    account                     Retrieve an account from the blockchain\n    code                        Retrieve the code and ABI for an account\n    abi                         Retrieve the ABI for an account\n    table                       Retrieve the contents of a database table\n    currency                    Retrieve information related to standard currencies\n    accounts                    Retrieve accounts associated with a public key\n    servants                    Retrieve accounts which are servants of a given account\n    transaction                 Retrieve a transaction from the blockchain\n    actions                     Retrieve all actions with specific account name referenced in authorization or receiver\n  push\n    action                      Push a transaction with a single action\n  set\n    abi                         Create or update the abi on an account\n    code                        Create or update the code on an account\n    contract                    Create or update the contract on an account\n  system\n    newaccount                  Create an account, buy ram, stake for bandwidth for the account\n    listproducers               List producers\n```\n\nThis library is very much a work in progress.\n\n## Installation\n\n### Linux\n\n```\npip install eospyabi\n```\n\n### Windows\n\n1. Install python\n   You can use either Python 2.7 or 3.7 however we suggest python 3.7 as we have tested that version more thoroughly.\n   https://www.howtogeek.com/197947/how-to-install-python-on-windows/\n   [Python 3.7](https://www.python.org/downloads/release/python-370/)\n\n2. Install git\n   https://www.atlassian.com/git/tutorials/install-git\n\n```\n# install from pip\npip install eospyabi\n```\n\n## API Endpoints\n\nFor a more complete list of API endpoints check out:\n\nhttps://www.eosdocs.io/resources/apiendpoints/\n\n## Command line Tool Examples\n\n```\n# Get chain information\npycleos --url https://api.eosnewyork.io get info\n\n# get information about a block\npycleos --url https://api.eosnewyork.io get block 447\n\n# Retrieve an account from the blockchain\npycleos --url https://api.eosnewyork.io get account --account eosio\n\n# Retrieve the code and ABI for an account\npycleos --url https://api.eosnewyork.io get code --account eosio\n\n# Retrieve the ABI for an account\npycleos --url https://api.eosnewyork.io get abi --account eosio\n\n# Retrieve the contents of a database table\npycleos --url https://api.eosnewyork.io get table --code eosio --scope eosio --table producers\n\n# Retrive currency information\npycleos --url https://api.eosnewyork.io get currency balance --code eosio.token --symbol EOS --account aaaaaaaaaaaa\npycleos --url https://api.eosnewyork.io get currency stats --code eosio.token --symbol EOS\n\n# get accounts associated with public key\npycleos --url https://api.eosnewyork.io get accounts --key EOS52gpRqAPfggYHLXbMuC4TSQd8WWWo94KrMq4umgUcjM62Y2dWF\n\n# get transaction information\npycleos --url https://api.eosnewyork.io get transaction --transaction 42dacd5722001b734be46a2140917e06cd21d42425f927f506c07b4388b07f62\n\n# get account actions\npycleos --url https://api.eosnewyork.io get actions --account aaaaaaaaaaaa\n\n```\n\n## Examples\n\nCheck out the examples directory for some examples of how to use the library\n\n## Testeos\n\nComing soon...\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python library for the eos.io REST API",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/MajicGit/eospyABI"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ce48dee042169c5dd2759f66bfd9d8871e3c5f79ed432dbe250a10104fdb06b9",
                "md5": "08de0fffcea2670847ccb26730a2ebc1",
                "sha256": "bb7414b13e58e349aa7ed25d307417c7ac0c9959cb72146092b67894db860365"
            },
            "downloads": -1,
            "filename": "eospyabi-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "08de0fffcea2670847ccb26730a2ebc1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 26832,
            "upload_time": "2024-02-22T13:00:54",
            "upload_time_iso_8601": "2024-02-22T13:00:54.875463Z",
            "url": "https://files.pythonhosted.org/packages/ce/48/dee042169c5dd2759f66bfd9d8871e3c5f79ed432dbe250a10104fdb06b9/eospyabi-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-22 13:00:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MajicGit",
    "github_project": "eospyABI",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "eospyabi"
}
        
Elapsed time: 0.22693s