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

Commit 4877f47

Browse files
authored
Merge pull request #2 from iotaledger/develop
1.0.0-beta1
2 parents 8469584 + 5a561d9 commit 4877f47

File tree

94 files changed

+19856
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+19856
-2
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Python metadata
2+
*.py[co]
3+
4+
# Generated distribution files.
5+
# :see: https://packaging.python.org/distributing/
6+
build/*
7+
dist/*
8+
PyOTA.egg-info/*
9+
*.so
10+
11+
# Virtualenvs for unit tests.
12+
# :see: https://tox.readthedocs.io/en/latest/
13+
.tox/*
14+
15+
# Generated documentation files.
16+
docs/_build
17+
18+
#
19+
# Note: For environment- or IDE-specific metadata (e.g., .DS_Store, .idea, etc.
20+
# you can add these to your own "global" .gitignore file.
21+
# :see: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
22+
#

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
- "3.5"
5+
- "3.6-dev"
6+
install: "pip install ."
7+
script: "nosetests"

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.rst

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
.. image:: https://travis-ci.org/iotaledger/pyota.svg?branch=develop
2+
:target: https://travis-ci.org/iotaledger/pyota
3+
4+
=====
5+
PyOTA
6+
=====
7+
This is the official Python library for the IOTA Core.
8+
9+
It implements both the `official API`_, as well as newly-proposed functionality
10+
(such as signing, bundles, utilities and conversion).
11+
12+
.. warning::
13+
This is pre-release software!
14+
There may be performance and stability issues.
15+
16+
Please report any issues using the `PyOTA Bug Tracker`_.
17+
18+
Join the Discussion
19+
===================
20+
If you want to get involved in the community, need help with getting setup,
21+
have any issues related with the library or just want to discuss Blockchain,
22+
Distributed Ledgers and IoT with other people, feel free to join our `Slack`_.
23+
24+
You can also ask questions on our `dedicated forum`_.
25+
26+
============
27+
Dependencies
28+
============
29+
PyOTA is compatible with Python 3.6, 3.5 and 2.7.
30+
31+
============
32+
Installation
33+
============
34+
To install the latest stable version::
35+
36+
pip install pyota
37+
38+
Installing from Source
39+
======================
40+
41+
1. `Create virtualenv`_ (recommended, but not required).
42+
2. ``git clone https://github.com/iotaledger/iota.lib.py.git``
43+
3. ``pip install -e .``
44+
45+
Running Unit Tests
46+
------------------
47+
To run unit tests after installing from source::
48+
49+
python setup.py test
50+
51+
PyOTA is also compatible with `tox`_::
52+
53+
pip install tox
54+
tox
55+
56+
=============
57+
Documentation
58+
=============
59+
For the full documentation of this library, please refer to the
60+
`official API`_
61+
62+
63+
.. _Create virtualenv: https://virtualenvwrapper.readthedocs.io/
64+
.. _SWIG: http://www.swig.org/download.html
65+
.. _Slack: http://slack.iotatoken.com/
66+
.. _dedicated forum: http://forum.iotatoken.com/
67+
.. _official API: https://iota.readme.io/
68+
.. _PyOTA Bug Tracker: https://github.com/iotaledger/iota.lib.py/issues
69+
.. _tox: https://tox.readthedocs.io/

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = PyOTA
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/conf.py

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# PyOTA documentation build configuration file, created by
5+
# sphinx-quickstart on Mon Dec 5 21:20:31 2016.
6+
#
7+
# This file is execfile()d with the current directory set to its
8+
# containing dir.
9+
#
10+
# Note that not all possible configuration values are present in this
11+
# autogenerated file.
12+
#
13+
# All configuration values have a default; values that are commented out
14+
# serve to show the default.
15+
16+
# If extensions (or modules to document with autodoc) are in another directory,
17+
# add these directories to sys.path here. If the directory is relative to the
18+
# documentation root, use os.path.abspath to make it absolute, like shown here.
19+
#
20+
# import os
21+
# import sys
22+
# sys.path.insert(0, os.path.abspath('.'))
23+
24+
25+
# -- General configuration ------------------------------------------------
26+
27+
# If your documentation needs a minimal Sphinx version, state it here.
28+
#
29+
# needs_sphinx = '1.0'
30+
31+
# Add any Sphinx extension module names here, as strings. They can be
32+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33+
# ones.
34+
extensions = [
35+
'sphinx.ext.autodoc',
36+
'sphinx.ext.viewcode',
37+
]
38+
39+
# Add any paths that contain templates here, relative to this directory.
40+
templates_path = ['_templates']
41+
42+
# The suffix(es) of source filenames.
43+
# You can specify multiple suffix as a list of string:
44+
#
45+
# source_suffix = ['.rst', '.md']
46+
source_suffix = '.rst'
47+
48+
# The master toctree document.
49+
master_doc = 'index'
50+
51+
# General information about the project.
52+
project = 'PyOTA'
53+
copyright = '2016, IOTA Foundation'
54+
author = 'Phoenix Zerin'
55+
56+
# The version info for the project you're documenting, acts as replacement for
57+
# |version| and |release|, also used in various other places throughout the
58+
# built documents.
59+
#
60+
61+
# # :see: http://stackoverflow.com/a/2073599/
62+
# from pkg_resources import require
63+
# __version__ = require('PyOTA')[0].version
64+
#
65+
# # The short X.Y version.
66+
# version = __version__
67+
# # The full version, including alpha/beta/rc tags.
68+
# release = __version__
69+
70+
# The language for content autogenerated by Sphinx. Refer to documentation
71+
# for a list of supported languages.
72+
#
73+
# This is also used if you do content translation via gettext catalogs.
74+
# Usually you set "language" from the command line for these cases.
75+
language = None
76+
77+
# List of patterns, relative to source directory, that match files and
78+
# directories to ignore when looking for source files.
79+
# This patterns also effect to html_static_path and html_extra_path
80+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
81+
82+
# The name of the Pygments (syntax highlighting) style to use.
83+
pygments_style = 'sphinx'
84+
85+
# If true, `todo` and `todoList` produce output, else they produce nothing.
86+
todo_include_todos = False
87+
88+
89+
# -- Options for HTML output ----------------------------------------------
90+
91+
# The theme to use for HTML and HTML Help pages. See the documentation for
92+
# a list of builtin themes.
93+
#
94+
html_theme = 'alabaster'
95+
96+
# Theme options are theme-specific and customize the look and feel of a theme
97+
# further. For a list of options available for each theme, see the
98+
# documentation.
99+
#
100+
# html_theme_options = {}
101+
102+
# Add any paths that contain custom static files (such as style sheets) here,
103+
# relative to this directory. They are copied after the builtin static files,
104+
# so a file named "default.css" will overwrite the builtin "default.css".
105+
html_static_path = ['_static']
106+
107+
108+
# -- Options for HTMLHelp output ------------------------------------------
109+
110+
# Output file base name for HTML help builder.
111+
htmlhelp_basename = 'PyOTAdoc'
112+
113+
114+
# -- Options for LaTeX output ---------------------------------------------
115+
116+
latex_elements = {
117+
# The paper size ('letterpaper' or 'a4paper').
118+
#
119+
# 'papersize': 'letterpaper',
120+
121+
# The font size ('10pt', '11pt' or '12pt').
122+
#
123+
# 'pointsize': '10pt',
124+
125+
# Additional stuff for the LaTeX preamble.
126+
#
127+
# 'preamble': '',
128+
129+
# Latex figure (float) alignment
130+
#
131+
# 'figure_align': 'htbp',
132+
}
133+
134+
# Grouping the document tree into LaTeX files. List of tuples
135+
# (source start file, target name, title,
136+
# author, documentclass [howto, manual, or own class]).
137+
latex_documents = [
138+
(master_doc, 'PyOTA.tex', 'PyOTA Documentation',
139+
'Phoenix Zerin', 'manual'),
140+
]
141+
142+
143+
# -- Options for manual page output ---------------------------------------
144+
145+
# One entry per manual page. List of tuples
146+
# (source start file, name, description, authors, manual section).
147+
man_pages = [
148+
(master_doc, 'pyota', 'PyOTA Documentation',
149+
[author], 1)
150+
]
151+
152+
153+
# -- Options for Texinfo output -------------------------------------------
154+
155+
# Grouping the document tree into Texinfo files. List of tuples
156+
# (source start file, target name, title, author,
157+
# dir menu entry, description, category)
158+
texinfo_documents = [
159+
(master_doc, 'PyOTA', 'PyOTA Documentation',
160+
author, 'PyOTA', 'One line description of project.',
161+
'Miscellaneous'),
162+
]
163+
164+
165+

docs/index.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. PyOTA documentation master file, created by
2+
sphinx-quickstart on Mon Dec 5 21:20:31 2016.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to PyOTA's documentation!
7+
=================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
14+
15+
Indices and tables
16+
==================
17+
18+
* :ref:`genindex`
19+
* :ref:`modindex`
20+
* :ref:`search`

docs/make.bat

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=.
11+
set BUILDDIR=_build
12+
set SPHINXPROJ=PyOTA
13+
14+
if "%1" == "" goto help
15+
16+
%SPHINXBUILD% >NUL 2>NUL
17+
if errorlevel 9009 (
18+
echo.
19+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
20+
echo.installed, then set the SPHINXBUILD environment variable to point
21+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
22+
echo.may add the Sphinx directory to PATH.
23+
echo.
24+
echo.If you don't have Sphinx installed, grab it from
25+
echo.http://sphinx-doc.org/
26+
exit /b 1
27+
)
28+
29+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
30+
goto end
31+
32+
:help
33+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
34+
35+
:end
36+
popd

examples/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# coding=utf-8
2+
from __future__ import absolute_import, division, print_function, \
3+
unicode_literals

0 commit comments

Comments
 (0)