Code Monkey home page Code Monkey logo

Comments (8)

metachris avatar metachris commented on July 4, 2024

I would be interested in working on this.

What scope do you have in mind? JSON-RPC (& REST)? Which API calls? Perhaps we could use the wiki to draft up a quick API spec.

As web framework it would probably makes sense to just use Twisted, since it is already used as networking lib in neo-python. http://twistedmatrix.com/documents/current/web/howto/

from neo-python.

metachris avatar metachris commented on July 4, 2024

A few notes: I did some research and testing with the Twisted web API. The documentation is not easy to follow, looks outdated in many areas, is not always reproducible, and is in general hard to implement.

Two popular web frameworks for using with Twisted are:

Klein let's users define web routes/APIs like this:

from klein import Klein
app = Klein()

@app.route('/')
def pg_root(request):
    return 'I am the root page!'

@app.route('/about')
def pg_about(request):
    return 'I am a Klein application!'

app.run("localhost", 8080)

From a developer usability point of view, I think Klein would be a good choice for implementing the JSON-RPC and REST API on top of Twisted.

from neo-python.

localhuman avatar localhuman commented on July 4, 2024

Klein looks good! I also like this reference from their read me Klein Bottle

from neo-python.

metachris avatar metachris commented on July 4, 2024

See also #108 for related code.

from neo-python.

metachris avatar metachris commented on July 4, 2024

Question: What would be a few interesting API calls to start with?

from neo-python.

metachris avatar metachris commented on July 4, 2024

from neo-python.

metachris avatar metachris commented on July 4, 2024

Work has started: https://github.com/CityOfZion/neo-python/tree/jsonrpc1

from neo-python.

metachris avatar metachris commented on July 4, 2024

Closing in favor of #189

from neo-python.

Related Issues (20)

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.