Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Add Python demo #20

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

thejohnfreeman
Copy link

You can see a GitHub rendering of the directory here.

Copy link
Contributor

@keefertaylor keefertaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also just update the root README.md in a sane way. Our tech writing team will eventually re-write so don't worry too much about it.

python/main.py Outdated

import xpring


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: extra blank line

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is part of the Google style, but I'll remove it.

Copy link
Contributor

@keefertaylor keefertaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh actually, is it a pain to prove this builds via CI? You should just be able to add a new step to .circleci/config.yml

I think you'll need to install poetry here since I don't see in the default packages.

@keefertaylor
Copy link
Contributor

keefertaylor commented Mar 5, 2020

Thanks for doing this. Excited to get this out there!

+ devx-reviewers to get a second set of eyes.

@keefertaylor keefertaylor requested review from a team and 0xCLARITY and removed request for a team March 5, 2020 14:58
Copy link
Contributor

@0xCLARITY 0xCLARITY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! How does this work exactly? Does Python have a way to call JS code?


- run:
name: "Run Python SDK Demo"
command: cd java && poetry install && poetry run python main.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cd python?

@@ -0,0 +1,34 @@
import time

import xpring
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does xpring come from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I publish this package to PyPI: https://pypi.org/project/xpring/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a Python implementation of serialization, signing, and gRPC for XRPL. No calls to JavaScript.

Copy link
Contributor

@0xCLARITY 0xCLARITY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Awesome that you implemented this!

@keefertaylor
Copy link
Contributor

Apologies that CI was misconfigured. If you tickle this build it should give you an actual result now.

@thejohnfreeman
Copy link
Author

How do we get libgmp installed on the MacOS image used by CircleCI?

@keefertaylor
Copy link
Contributor

Apologies this has sat in my review queue for so long.

I think you can just add gmp to the brew install command in .circleci/config.yml

@keefertaylor
Copy link
Contributor

CI on this will fail until #37 is merged.

I'd love to see this merged afterwards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants