Skip to main content

two1-fork

Project description

21: Build the Machine-Payable Web Build Status

21 logo

21 is an open source Python library and command line interface for quickly building machine-payable web services. It allows you to accomplish three major tasks:

  • Get bitcoin on any device
  • Add bitcoin micropayments to any Django or Flask app
  • Earn bitcoin on every HTTP request

The package includes:

  • an HD wallet to securely manage your bitcoin
  • crypto and bitcoin libraries to build bitcoin/blockchain applications
  • a micropayment-channels client and server
  • commands for mining, buying, and earning bitcoin, as well as requesting it from the 21 faucet
  • tools for publishing machine-payable endpoints to the 21 Marketplace
  • containers that allow your machine to sell machine resources for bitcoin

and much more.

Security

Please note that the 21 software is in beta. To protect the security of your systems while using 21, we highly recommend you install the software on a device other than your main laptop (e.g. 21 Bitcoin Computer, an old laptop, or an Amazon Virtual Machine) while the product is still in beta. You can read more security-related information here. Please send an email to security@21.co regarding any issue concerning security.

Installation

Create an account or install the library and CLI (python3.4+ is required):

$ curl https://21.co | sh

two1 can also be installed via pip:

$ sudo pip3 install two1

Start with the command line tool:

$ 21 help

Then read the Introduction to 21 guide and the two1 documentation.

Developers

To edit and run the two1 source code:

$ git clone https://github.com/21dotco/two1-python.git
$ cd two1-python/
$ pip3 install -r requirements.txt  # Install the requirements
$ pip3 install -e .  # Install 21 as an editable python library

Your changes to the source will now be reflected in your system installation in real-time.

Docker

You can pull Docker images with two1 pre-installed from the 21 Docker Hub repository.

$ docker pull 21dotco/two1

Then run the latest base image:

$ docker run -it 21dotco/two1 sh

Community

Join the 21 developer community to chat with other users or to get in touch with support.

Licensing

two1 is licensed under the FreeBSD License. See LICENSE for the full license text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

two1_fork-3.11.0.tar.gz (12.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

two1_fork-3.11.0-py3-none-any.whl (423.7 kB view details)

Uploaded Python 3

File details

Details for the file two1_fork-3.11.0.tar.gz.

File metadata

  • Download URL: two1_fork-3.11.0.tar.gz
  • Upload date:
  • Size: 12.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for two1_fork-3.11.0.tar.gz
Algorithm Hash digest
SHA256 7c618ba1931cf6a4d17c9c78d0e54585157051156d8bdf1740943a89bddf0f1f
MD5 d6f9c5b0554c3b2f3e7a9e01b4be451d
BLAKE2b-256 d296d5ab6cb6e61b6f9bce7216877e053fa96ebb58088d84d8347677e1bc2274

See more details on using hashes here.

File details

Details for the file two1_fork-3.11.0-py3-none-any.whl.

File metadata

  • Download URL: two1_fork-3.11.0-py3-none-any.whl
  • Upload date:
  • Size: 423.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for two1_fork-3.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9585e9df9b710366fde5a0d38bd05f0b927ba31d94888cef06496f6cdf87194
MD5 ebb7b15e2289556fef0d3588c22b8e49
BLAKE2b-256 136e7f2b8a4d4a6029ae7ac5599f67a64dddf8126885099002c66e4464130b74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page