Giter Site home page Giter Site logo

neo-python's Introduction

neo-python: Python SDK for NEO platform

In progress, please reach out in order to contribute

Getting started

make a python 3 virtual environment, and activate it

python3 -m venv venv
source venv/bin/activate

then install requirements

pip install -r requirements.txt

Installing on OSX

if you're having an issue similar to this:

    from ._plyvel import (  # noqa
    ImportError: dlopen(neo-python/venv/lib/python3.5/site-packages/plyvel/_plyvel.cpython-35m-darwin.so, 2): Symbol not found: __ZN7leveldb2DB4OpenERKNS_7Options
    ERKSsPPS0_
    Referenced from: neo-python/venv/lib/python3.5/site-packages/plyvel/_plyvel.cpython-35m-darwin.so
    Expected in: flat namespace

You may need to uninstall plyvel (python libleveldb library), and reinstall with the following cflags

pip uninstall plyvel
CFLAGS='-mmacosx-version-min=10.7 -stdlib=libc++' pip install --no-use-wheel plyvel --no-cache-dir

Running

After installing requirements and activating your environment, there is an easy to use cli.py file for you to run

python cli.py 

That should do some stuff. Not fully functional yet

Tests

Tests are important. Currently there are not enough, but we are working on that. You can start them by running this command

python -m unittest discover neo 

To run tests with coverage, use the following

coverage run -m unittest discover neo

After that, you can generate a command line coverage report use the following:

coverage report -m --omit=venv/*

neo-python's People

Contributors

localhuman avatar tangys avatar saun0063 avatar itzlixin avatar alpha11 avatar fl0wjacky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.