GithubHelp home page GithubHelp logo

Comments (2)

cjdsellers avatar cjdsellers commented on June 12, 2024 1

Hi @kivo360

Thanks for the suggestion here.

I had a quick play with stubgen, and ran this fairly vanilla command:

stubgen -p nautilus_trader

Processed 430 modules
Generated files under out/nautilus_trader/

It then resulted in this on the pre-commit:

Found 350 errors in 152 files (checked 676 source files)

So it looks promising, but appears to need some tweaking:

  • We only need to generate .pyi files for the C extension module dynamic libs (I think?)
  • It should be integrated with the build.py build and happen automatically, like the way cbindgen is setup with the Rust core

If the above can be done and results in no mypy errors, and working type stubs, then we'd be happy to incorporate it into the codebase - as its recognized this would be very helpful for users and contributors.

Otherwise, I have to invest my own time into other areas, as a more ultimate goal is to port to Rust with pyo3, and we already have a growing .pyi file for that.

from nautilus_trader.

kivo360 avatar kivo360 commented on June 12, 2024 1

I'd say keep focusing on porting to Rust. I generated some typings as well and ran into the same issue.

I don't believe the problem can be fully solved using cython builds. I think it'll be a much better time if the code kept progressing. I'm currently trying simple strategies, exploring data management techniques (to handle more complex backtests)

If I have the bandwidth to contribute to the project in the future I will.

from nautilus_trader.

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.