Closed wiwichips closed 3 months ago
internal implementation details are leaked when one imports dcp, need to limit that
bfclass class maker is ugly and should be cleaned up
Merging now since this is the initial PR which will enable others to contribute.
Initial Bifrost 2 Structure
This PR contains the base set up for Bifrost 2 (the new Python SDK for DCP). It outlines the file structure of the module, and the dev tools used (poetry for Python management and testing, pminit for npm install for instance).
File structure
Module logic is in
dcp/
, tests are intests/
...dcp.api
job.wait()
andcompute_for
livedcp.dry
dcp.js
dcp-client
(note: the file structure is subject to change and may have changed by the time you review this PR)
Module initialization algorithm
When
dcp.init()
is called a module system is programatically generated which matches the JavaScript CJS modules. At the same time, any classes, or functions come across are automatically converted to more Pythonic structures.List of things this PR does