Skip to main content

Library for working with NEO related data in Python, without database dependencies.

https://travis-ci.org/CityOfZion/neo-python-core.svg?branch=master https://coveralls.io/repos/github/CityOfZion/neo-python-core/badge.svg

Currently in alpha development.

Getting started

You need Python 3.5.

You can install neocore from PyPI with easy_install or pip:

$ pip install -U neocore

Alternatively, if you want to work on the code, clone this repository and setup your venv:

  • Clone the repo: git@github.com:CityOfZion/neo-python-core.git

  • Create a Python 3 virtual environment and activate it:

$ python3 -m venv venv
$ source venv/bin/activate
  • Then install the requirements:

$ pip install -e .
$ pip install -r requirements_dev.txt

Useful commands

$ make lint
$ make test
$ make coverage

Release checklist

(Only for admins)

Releasing a new version on GitHub automatically uploads this release to PyPI. This is a checklist for releasing a new version:

# In case you want to increase the version number again (eg. scope changed from patch to minor):
bumpversion --no-tag minor|major

# Update ``HISTORY.rst`` with the new version number and the changes and commit this
vi HISTORY.rst
git commit -m "Updated HISTORY.rst" HISTORY.rst

# Set the release version number and create the tag
bumpversion release

# Increase patch number and add `-dev`
bumpversion --no-tag patch

# Push to GitHub, which also updates the PyPI package
git push && git push --tags

History

0.4.0 (2018-03-21)

  • Fix formatting of ToNeoJsonString() which was cutting off trailing zeroes from integers.

0.3.8 (2018-03-14)

  • Fix travis deploy to be compatible with recent neo-python changes

  • Update scrypt and logzero dependency versions

0.3.6 (2018-02-26)

  • Enabled Python >= 3.4 in setup.py

0.3.5 (2018-02-15)

  • Bugfix: Dont unhex when writing var bytes (PR #36)

0.3.4 (2018-01-25)

  • Added ParseString method to UInt160/UInt256 (PR #35)

0.3.3 (2018-01-25)

  • Added Fixed8.ToJsonString() (PR #33)

0.3.2 (2018-01-23)

  • Added UInt To0xString method

0.3.1 (2018-01-09)

  • Documentation update

  • Moved the cryptography dependency to requirements_dev.txt

0.3.0 (2018-01-09)

  • Added neo.Cryptography and KeyPair

  • Changed signature of neocore.Cryptography.Crypto.Sign() to remove unused public_key argument

  • Removed redundant neocore.Cryptography.Helper.hash_to_wallet_address() function, use neocore.Cryptography.Helper.scripthash_to_address() instead.

  • Removed unused neocore.Cryptography.Helper functions: random_string, bytes_to_hex_string, bin_sha256, sha256, random_key.

0.2.4 + 0.2.5 (2018-01-03)

  • Bugfix for deploying from Travis to PyPI/neocore

0.2.3 (2018-01-03)

  • Bugfix for BinaryWriter (PR #13)

0.2.1 (2018-01-02)

  • Added UInt*, Fixed8 and neo.IO.Binary* (PR #9)

0.1.1 - 0.1.2 (2017-12-30)

  • Testing of releases on PyPI with Travis CI.

0.1.0 (2017-12-28)

  • First release on PyPI.

Metadata

Release files for neocore 0.3.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neocore 0.3.10
File Size Uploaded Provenance Actions
neocore-0.3.10.tar.gz 39.6 kB Without provenance Details for neocore-0.3.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neocore 0.3.10
File Interpreter ABI Platform Actions
neocore-0.3.10-py2.py3-none-any.whl Python 2, Python 3 none any Details for neocore-0.3.10-py2.py3-none-any.whl

Total release size: 67.5 kB

Release files / neocore-0.3.10.tar.gz

Download URL neocore-0.3.10.tar.gz
Size 39.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b17badf0b92b9b2d7998c37baabcc71918b1ba141710b3d28113970d652a68aa
BLAKE2b-256 checksum
How to use checksums
228774d9ff909808a541effe8635670085dadafd186e1e0a78006d18f9ad605c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / neocore-0.3.10-py2.py3-none-any.whl

Download URL neocore-0.3.10-py2.py3-none-any.whl
Size 27.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
848b86dc2cc354db19c96bf187d24bfaa8edfaa962d93797bcaf8376aa7f3169
BLAKE2b-256 checksum
How to use checksums
27881cdb4de952ffa04a96e7169a32d938afbc8f37c8241cfb22a83b976f2dc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for neocore 0.3.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page