address-name-system


Nameaddress-name-system JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/Naruno/Address-Name-System
SummaryMapping Addresses to Dynamic IPs, Simplified
upload_time2023-04-18 20:50:19
maintainer
docs_urlNone
authorNaruno Developers
requires_python>= 3
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Address Name System (ANS) for Naruno
ANS is a decentralized system that maps blockchain addresses to dynamic IPs, making it easy to access servers with changing IP addresses. With ANS, you can access your server by using your unique blockchain address instead of constantly searching for its changing IP address.

## Features
- Decentralized system
- Secure communication between nodes
- Fast and easy to use
- Maps blockchain addresses to dynamic IPs
- Uses encryption to protect sensitive information

## Installation
You can install ANS by pip3:

```console
pip3 install address_name_system
```

## Usage

*If you want to use address_name_system you must to use Naruno. For now please checkout the [Baklava Testnet](https://naruno.org/baklava-testnet/).

Getting address of client and server:
```console
narunocli -pw
```

### Server
For accessing your dynamic IPs over blockchain you should create a address_name_system and giving trusted user addresses.

```python
from address_name_system import ans

my_ans_server = ans("MyNarunoPass")

my_ans_server.set_encrypt_key("mystrongencrypt_key")

my_ans_server.add_user("client_address")

my_ans_server.run()
```

also you can use in command line:
```console	
ans --password MyNarunoPass --encrypt_key "mystrongencrypt_key" --trusted_users ["client_address"] run
```

### Client
To use ANS, you can call the ans.ip function with your blockchain address as the parameter:

```python
from address_name_system import ans

my_ans_client = ans("MyNarunoPass")

ip_address = my_ans_client.ip("server_address", "mystrongencrypt_key")

print(ip_address)

my_ans_client.close()
```

also you can use in command line:
```console	
ans --password "MyNarunoPass" ip "server_address" "mystrongencrypt_key"
```


This will return the dynamic IP address associated with your blockchain address.

## Contributing
Contributions to ANS are welcome! If you have any suggestions or find a bug, please open an issue on the GitHub repository. If you want to contribute code, please fork the repository and create a pull request.

## License
ANS is released under the MPL-2.0 License.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Naruno/Address-Name-System",
    "name": "address-name-system",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">= 3",
    "maintainer_email": "",
    "keywords": "",
    "author": "Naruno Developers",
    "author_email": "onur.atakan.ulusoy@naruno.org",
    "download_url": "https://files.pythonhosted.org/packages/42/c9/2a4445c26caa00fb9aa2cee659a81a8b169d5df6ae1f553a8e214b2cea76/address_name_system-0.2.3.tar.gz",
    "platform": null,
    "description": "# Address Name System (ANS) for Naruno\nANS is a decentralized system that maps blockchain addresses to dynamic IPs, making it easy to access servers with changing IP addresses. With ANS, you can access your server by using your unique blockchain address instead of constantly searching for its changing IP address.\n\n## Features\n- Decentralized system\n- Secure communication between nodes\n- Fast and easy to use\n- Maps blockchain addresses to dynamic IPs\n- Uses encryption to protect sensitive information\n\n## Installation\nYou can install ANS by pip3:\n\n```console\npip3 install address_name_system\n```\n\n## Usage\n\n*If you want to use address_name_system you must to use Naruno. For now please checkout the [Baklava Testnet](https://naruno.org/baklava-testnet/).\n\nGetting address of client and server:\n```console\nnarunocli -pw\n```\n\n### Server\nFor accessing your dynamic IPs over blockchain you should create a address_name_system and giving trusted user addresses.\n\n```python\nfrom address_name_system import ans\n\nmy_ans_server = ans(\"MyNarunoPass\")\n\nmy_ans_server.set_encrypt_key(\"mystrongencrypt_key\")\n\nmy_ans_server.add_user(\"client_address\")\n\nmy_ans_server.run()\n```\n\nalso you can use in command line:\n```console\t\nans --password MyNarunoPass --encrypt_key \"mystrongencrypt_key\" --trusted_users [\"client_address\"] run\n```\n\n### Client\nTo use ANS, you can call the ans.ip function with your blockchain address as the parameter:\n\n```python\nfrom address_name_system import ans\n\nmy_ans_client = ans(\"MyNarunoPass\")\n\nip_address = my_ans_client.ip(\"server_address\", \"mystrongencrypt_key\")\n\nprint(ip_address)\n\nmy_ans_client.close()\n```\n\nalso you can use in command line:\n```console\t\nans --password \"MyNarunoPass\" ip \"server_address\" \"mystrongencrypt_key\"\n```\n\n\nThis will return the dynamic IP address associated with your blockchain address.\n\n## Contributing\nContributions to ANS are welcome! If you have any suggestions or find a bug, please open an issue on the GitHub repository. If you want to contribute code, please fork the repository and create a pull request.\n\n## License\nANS is released under the MPL-2.0 License.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Mapping Addresses to Dynamic IPs, Simplified",
    "version": "0.2.3",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "42c92a4445c26caa00fb9aa2cee659a81a8b169d5df6ae1f553a8e214b2cea76",
                "md5": "37fa893d50df480e3a62774be6651c43",
                "sha256": "7952372e94cec92cce3cb19c650effbcf7ae2185faa8b2196a8726432f1f1cbd"
            },
            "downloads": -1,
            "filename": "address_name_system-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "37fa893d50df480e3a62774be6651c43",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">= 3",
            "size": 8886,
            "upload_time": "2023-04-18T20:50:19",
            "upload_time_iso_8601": "2023-04-18T20:50:19.879793Z",
            "url": "https://files.pythonhosted.org/packages/42/c9/2a4445c26caa00fb9aa2cee659a81a8b169d5df6ae1f553a8e214b2cea76/address_name_system-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-18 20:50:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Naruno",
    "github_project": "Address-Name-System",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "address-name-system"
}
        
Elapsed time: 0.07491s