Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit b1368af

Browse files
authored
Merge pull request #237 from iotaledger/release/2.0.9
PyOTA v2.0.9
2 parents cc22622 + 1418ea2 commit b1368af

24 files changed

+1579
-966
lines changed

README.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ If you want to get involved in the community, need help with getting setup,
1818
have any issues related with the library or just want to discuss Blockchain,
1919
Distributed Ledgers and IoT with other people, feel free to join our `Discord`_.
2020

21-
You can also ask questions on our `dedicated forum`_.
22-
2321
If you encounter any issues while using PyOTA, please report them using the
2422
`PyOTA Bug Tracker`_.
2523

@@ -61,14 +59,14 @@ To run unit tests after installing from source::
6159
PyOTA is also compatible with `tox`_, which will run the unit tests in different
6260
virtual environments (one for each supported version of Python).
6361

64-
To run the unit tests, it is recommended that you use the `detox`_ library.
65-
detox speeds up the tests by running them in parallel.
62+
To run the unit tests, it is recommended that you use the ``-p`` argument.
63+
This speeds up the tests by running them in parallel.
6664

6765
Install PyOTA with the ``test-runner`` extra to set up the necessary
68-
dependencies, and then you can run the tests with the ``detox`` command::
66+
dependencies, and then you can run the tests with the ``tox`` command::
6967

7068
pip install -e .[test-runner]
71-
detox -v
69+
tox -v -p all
7270

7371
=============
7472
Documentation
@@ -80,14 +78,14 @@ can also build the documentation locally:
8078

8179
#. Install extra dependencies (you only have to do this once)::
8280

83-
pip install '.[docs-builder]'
81+
pip install .[docs-builder]
8482

8583
.. tip::
8684

8785
To install the CCurl extension and the documentation builder tools
8886
together, use the following command::
8987

90-
pip install '.[ccurl,docs-builder]'
88+
pip install .[ccurl,docs-builder]
9189

9290
#. Switch to the ``docs`` directory::
9391

@@ -98,10 +96,8 @@ can also build the documentation locally:
9896
make html
9997

10098
.. _Create virtualenv: https://realpython.com/blog/python/python-virtual-environments-a-primer/
101-
.. _Discord: https://discord.gg/7Gu2mG5
99+
.. _Discord: https://discord.iota.org/
102100
.. _PyOTA Bug Tracker: https://github.com/iotaledger/iota.lib.py/issues
103101
.. _ReadTheDocs: https://pyota.readthedocs.io/
104-
.. _dedicated forum: https://forum.iota.org/
105-
.. _detox: https://pypi.python.org/pypi/detox
106-
.. _official API: https://iota.readme.io/
102+
.. _official API: https://docs.iota.org/docs/node-software/0.1/iri/references/api-reference
107103
.. _tox: https://tox.readthedocs.io/

docs/addresses.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ Using AddressGenerator
8080
generator = AddressGenerator(b'SEED9GOES9HERE')
8181
8282
# Generate a list of addresses:
83-
addresses = generator.get_addresses(index=0, count=5)
83+
addresses = generator.get_addresses(start=0, count=5)
8484
8585
# Generate a list of addresses in reverse order:
86-
addresses = generator.get_addresses(index=42, count=10, step=-1)
86+
addresses = generator.get_addresses(start=42, count=10, step=-1)
8787
8888
# Create an iterator, advancing 5 indices each iteration.
89-
iterator = generator.create_iterator(index=86, step=5)
89+
iterator = generator.create_iterator(start=86, step=5)
9090
for address in iterator:
9191
...
9292

docs/api.rst

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ These methods are "low level" and generally do not need to be called
99
directly.
1010

1111
For the full documentation of all the Core API calls, please refer
12-
to the `official documentation <https://iota.readme.io/>`__.
12+
to the `official documentation <https://docs.iota.org/docs/node-software/0.1/
13+
iri/references/api-reference>`__.
1314

1415
Extended API
1516
============
@@ -36,6 +37,40 @@ This method returns a ``dict`` with the following items:
3637
broadcast/stored. Should be the same as the value of the ``trytes``
3738
parameter.
3839

40+
41+
``find_transaction_objects``
42+
----------------------------
43+
44+
A more extensive version of the core API ``find_transactions`` that returns
45+
transaction objects instead of hashes.
46+
47+
Effectively, this is ``find_transactions`` + ``get_trytes`` + converting
48+
the trytes into transaction objects. It accepts the same parameters
49+
as ``find_transactions``
50+
51+
Find the transactions which match the specified input.
52+
All input values are lists, for which a list of return values
53+
(transaction hashes), in the same order, is returned for all
54+
individual elements. Using multiple of these input fields returns the
55+
intersection of the values.
56+
57+
Parameters
58+
~~~~~~~~~~
59+
60+
- ``bundles: Optional[Iterable[BundleHash]]``: List of bundle IDs.
61+
- ``addresses: Optional[Iterable[Address]]``: List of addresses.
62+
- ``tags: Optional[Iterable[Tag]]``: List of tags.
63+
- ``param: Optional[Iterable[TransactionHash]]``: List of approvee
64+
transaction IDs.
65+
66+
Return
67+
~~~~~~
68+
69+
This method returns a ``dict`` with the following items:
70+
71+
- ``transactions: List[Transaction]``: List of Transaction objects that
72+
match the input
73+
3974
``get_account_data``
4075
--------------------
4176

docs/getting_started.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Installation
22
============
3-
PyOTA is compatible with Python 3.6, 3.5 and 2.7.
3+
PyOTA is compatible with Python 3.7, 3.6, 3.5 and 2.7.
44

55
Install PyOTA using `pip`:
66

@@ -76,7 +76,7 @@ your API requests so that they contain the necessary authentication metadata.
7676
)
7777
7878
.. _forum: https://forum.iota.org/
79-
.. _official api: https://iota.readme.io/
79+
.. _official api: https://docs.iota.org/docs/node-software/0.1/iri/references/api-reference
8080
.. _pyota-ccurl extension: https://pypi.python.org/pypi/PyOTA-CCurl
8181
.. _run your own node.: http://iotasupport.com/headlessnode.shtml
8282
.. _slack: http://slack.iota.org/

0 commit comments

Comments
 (0)