-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development Tools: Python SDK #1
Comments
So we have to come up with a wrapper on the JSON-RPC API as part of this issue. Correct? Or is there something more that is expected? |
For query methods and the faucet, yes. Methods that submit transactions require considerably more work. In order to submit a transaction, the client must sign it. In order to sign it, the client must binary marshal it. For the signature to be valid, the transaction as marshaled by the client must be byte-for-byte identical to the transaction as marshaled by the API. IMO the best strategy for marshaling is to build a type generator for Python to match the type generator for Go ( I would prefer for the API wrapper to be generated from |
Sorry, am not able to find |
The PR hasn't been merged yet. Here is the current version in the PR. |
Thanks @firelizzard18. I have stated working on it. Here is a sample of the wrapper json_rpc_client.py. Also have written the tests for the same here. |
@PraveenMathew92 Generally, yes. However, I recommend using |
AccumulateNetwork/accumulate#351 has been merged |
Sure @firelizzard18 . I have been going through the Is there any schema like the Open API Specification that you follow for the ymls? I want to know what all data types to expect and in general how are the ymls structured. |
Some of the fields in
|
Do we have implement only endpoints mentioned in the https://docs.accumulatenetwork.io/accumulate/developers/api/api-reference ? |
@QVidal do you have an answer for @ratnesh93's question? @PraveenMathew92, in this MR on GitLab, I've refactored the type generator to use the Go template language instead of everything being hard coded. This may make it easier to follow. Long term, I would like to have a template for every language we have an SDK for, so that the marshallers are all generated by the same generator. |
Description
We are looking for teams interested in building SDKs for Accumulate to make it easier for software developers to integrate the Accumulate protocol into their software.
The Python SDK should make interaction with the Accumulate protocol simple and straightforward using the Python programming language.
Requirements
The Python SDK should support all available Accumulate Operations. Please see the Accumulate API Documentation or the CLI Reference for information on the available operations.
Accumulate SDKs should be accessible, consistent, and reliable. The source code should be publicly available and include easy-to-follow and concise documentation.
Build the SDK with the expectation that it will be used in production by other developers. It should be secure, performant, and ready to use out of the box with minimal configuration.
The text was updated successfully, but these errors were encountered: