blockchain-lab


Nameblockchain-lab JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/Decentra-Network/Blockchain-Lab
SummaryA fully functional blockchain lab.
upload_time2023-01-01 15:36:18
maintainer
docs_urlNone
authorDecentra Network Developers
requires_python>=3.7
licenseMPL-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Blockchain Lab | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Decentra-Network/Blockchain-Lab/blob/master/blockchain_lab.ipynb) [![Open in Cloud Shell](https://img.shields.io/badge/Google-Open%20In%20Cloud%20Shell-blue)](https://ssh.cloud.google.com/cloudshell/open?shellonly=true&cloudshell_git_repo=https://github.com/Decentra-Network/Blockchain-Lab&cloudshell_tutorial=blockchain_lab.md)


A fully functional blockchain lab.

# Install

```
pip3 install blockchain_lab
```

# Using

## In another script

You can give these parameters in blockchain_lab()

- Node number with "node_number"
- Security circle number with "security_circle_number"
- Path with "path"

### Docker | Create & Delete

```python
from blockchain_lab import blockchain_lab

blockchain_lab().create_docker()
```

```python
from blockchain_lab import blockchain_lab

blockchain_lab().delete_docker()
```

### Local | Create & Delete

```python
from blockchain_lab import blockchain_lab

blockchain_lab().create_local()
```

```python
from blockchain_lab import blockchain_lab

blockchain_lab().delete_local()
```

### Status

```python
from blockchain_lab import blockchain_lab

blockchain_lab.status()
```

### Test with a transaction

```python
from blockchain_lab import blockchain_lab

blockchain_lab.send_transaction(receiver = "decentra-network", amount = 5000, data = "blockchain-lab")
```

## In command line

You can give these parameters in command line arguments of
create and delete functions.

- Node number with "-nn" or "--nodenumber"
- Security circle number with "-scn" or "--securitycirclenumber"
- Path with "-p" or "--path"

### Docker | Create & Delete

```console
blockchain_lab_create_docker
```

```console
blockchain_lab_delete_docker
```

### Local | Create & Delete

```console
blockchain_lab_create_local
```

```console
blockchain_lab_delete_local
```

### Status

```console
blockchain_lab_status
```

### Test with a transaction

```console
blockchain_lab_send_transaction -r decentra-network -a 5000 -d blockchain-lab
```
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Decentra-Network/Blockchain-Lab",
    "name": "blockchain-lab",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Decentra Network Developers",
    "author_email": "onur@decentranetwork.org",
    "download_url": "https://files.pythonhosted.org/packages/17/1b/86991e8d7438c737ac650fe2454d92ef58f214af9c6f518f24ec5110b26c/blockchain_lab-0.8.0.tar.gz",
    "platform": null,
    "description": "# Blockchain Lab | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Decentra-Network/Blockchain-Lab/blob/master/blockchain_lab.ipynb) [![Open in Cloud Shell](https://img.shields.io/badge/Google-Open%20In%20Cloud%20Shell-blue)](https://ssh.cloud.google.com/cloudshell/open?shellonly=true&cloudshell_git_repo=https://github.com/Decentra-Network/Blockchain-Lab&cloudshell_tutorial=blockchain_lab.md)\n\n\nA fully functional blockchain lab.\n\n# Install\n\n```\npip3 install blockchain_lab\n```\n\n# Using\n\n## In another script\n\nYou can give these parameters in blockchain_lab()\n\n- Node number with \"node_number\"\n- Security circle number with \"security_circle_number\"\n- Path with \"path\"\n\n### Docker | Create & Delete\n\n```python\nfrom blockchain_lab import blockchain_lab\n\nblockchain_lab().create_docker()\n```\n\n```python\nfrom blockchain_lab import blockchain_lab\n\nblockchain_lab().delete_docker()\n```\n\n### Local | Create & Delete\n\n```python\nfrom blockchain_lab import blockchain_lab\n\nblockchain_lab().create_local()\n```\n\n```python\nfrom blockchain_lab import blockchain_lab\n\nblockchain_lab().delete_local()\n```\n\n### Status\n\n```python\nfrom blockchain_lab import blockchain_lab\n\nblockchain_lab.status()\n```\n\n### Test with a transaction\n\n```python\nfrom blockchain_lab import blockchain_lab\n\nblockchain_lab.send_transaction(receiver = \"decentra-network\", amount = 5000, data = \"blockchain-lab\")\n```\n\n## In command line\n\nYou can give these parameters in command line arguments of\ncreate and delete functions.\n\n- Node number with \"-nn\" or \"--nodenumber\"\n- Security circle number with \"-scn\" or \"--securitycirclenumber\"\n- Path with \"-p\" or \"--path\"\n\n### Docker | Create & Delete\n\n```console\nblockchain_lab_create_docker\n```\n\n```console\nblockchain_lab_delete_docker\n```\n\n### Local | Create & Delete\n\n```console\nblockchain_lab_create_local\n```\n\n```console\nblockchain_lab_delete_local\n```\n\n### Status\n\n```console\nblockchain_lab_status\n```\n\n### Test with a transaction\n\n```console\nblockchain_lab_send_transaction -r decentra-network -a 5000 -d blockchain-lab\n```",
    "bugtrack_url": null,
    "license": "MPL-2.0",
    "summary": "A fully functional blockchain lab.",
    "version": "0.8.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "74e21de617a8e8dd27fc10261dc4744a",
                "sha256": "102f20cd3c399bb0a6146c4afe18a2c719b78f916352fbbbc51ad48c3778523c"
            },
            "downloads": -1,
            "filename": "blockchain_lab-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "74e21de617a8e8dd27fc10261dc4744a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9049,
            "upload_time": "2023-01-01T15:36:18",
            "upload_time_iso_8601": "2023-01-01T15:36:18.734914Z",
            "url": "https://files.pythonhosted.org/packages/17/1b/86991e8d7438c737ac650fe2454d92ef58f214af9c6f518f24ec5110b26c/blockchain_lab-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-01 15:36:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Decentra-Network",
    "github_project": "Blockchain-Lab",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "blockchain-lab"
}
        
Elapsed time: 0.03837s