This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from todofixthis/develop
1.0.0a4
- Loading branch information
Showing
3 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,41 @@ | ||
C Curl Extension for PyOTA | ||
========================== | ||
.. DANGER:: | ||
⚠️ **THIS VERSION IS EXPERIMENTAL AND HAS NOT BEEN VETTED FOR STABILITY/SECURITY YET; DO NOT USE IN PRODUCTION CODE!!!** ⚠️ | ||
⚠️ **THIS VERSION IS EXPERIMENTAL AND HAS NOT BEEN VETTED FOR STABILITY/SECURITY YET; DO NOT USE IN PRODUCTION CODE!!!** ⚠️ | ||
|
||
This is an extension for the crypto functionality in `PyOTA`_, the Python API | ||
This is an extension for the crypto functionality in `PyOTA <https://pypi.python.org/pypi/PyOTA>`_, the Python API | ||
for IOTA. When installed, it will significantly boost the performance of | ||
PyOTA's crypto functionality. | ||
|
||
This extension is installed as an add-on to the ``pyota`` package:: | ||
|
||
pip install pyota[ccurl] | ||
|
||
.. _PyOTA: https://pypi.python.org/pypi/PyOTA | ||
Compatibility | ||
------------- | ||
This extension is currently compatible with Python 3.6 and 3.5 only. | ||
|
||
`I've documented the issues with the Python 2 C API <https://github.com/todofixthis/pyota-ccurl/issues/4>`_. | ||
Adding Python 2 support is on my list, but it may take me a bit before I can get to it. | ||
|
||
If you have experience with C and are interested in getting involved, | ||
please reach out to me on the `IOTA Slack network <https://iotatangle.slack.com/>`_ or submit a pull request. | ||
|
||
Testing | ||
------- | ||
The easiest way to test the extension is to install it and then run the PyOTA unit tests. | ||
|
||
Here's a modified ``tox.ini`` file that for PyOTA that will install the C extension before running unit tests:: | ||
|
||
[tox] | ||
envlist = py27, py35, py36 | ||
|
||
[testenv] | ||
commands = | ||
pip install --pre pyota-ccurl | ||
nosetests | ||
deps = | ||
mock | ||
nose | ||
|
||
Note that this file needs to be installed in the PyOTA codebase! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters