Shecan CLI
The Shecan CLI is used to configure your DNS name server based on Shecan website from the command line.
For more about Shecan see https://shecan.ir/
- I wrote this script, because I wanted to configure a couple of linux servers to be able to use docker hub, which are blocked in Iran. And I wanted to get an agent to do it.
Introduction
Installation
The following instructions will place the shecan executable in a
virtualenv under shecan/bin/shecan.
- Shecan requires
>= Python 3.6.1
pip
This installs the latest stable, released version.
$ python3.6 -m venv shecan
$ shecan/bin/pip install shecan
Quickstart
- Run
shecan update- It will get Shecan DNS name servers and save them into a configuration file. - Run
shecan listIt will show shecan DNS name servers from the configuration file. - Run
shecan setThis will change your DNS temporarily by moving your current/etc/resolv.conffile and replace it with shecan DNS name server. If you encounter permission problem run the command this way:sudo $(which shecan) set. - Run
shecan verifyIt will check your DNS configuration and make sure that shecan works fine for you. - Run
shecan restoreIt will restore your previous DNS configuration. - Run
shecan showIt will print your current DNS configuration. - Run
shecan --versionIt will show shecan's version. - Run
shecan --helpIt will show full command-line options and subcommands.
Metadata
Release files for shecan 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| shecan-0.4.2.tar.gz | 10.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shecan-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / shecan-0.4.2.tar.gz
| Download URL | shecan-0.4.2.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4f33d8ab62b8a88ac209d34ea8910bb597ae13a7494c61be392268b18de1eb6
|
|
BLAKE2b-256 checksum How to use checksums |
095d001ca6e2103c890cdf144b22701e0b3a5ba7d42f4f31fe70620282baead3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
|
Release files / shecan-0.4.2-py3-none-any.whl
| Download URL | shecan-0.4.2-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8177c2e135202c8bd1c8ecef372464805ba5d0f3465d8f0a052b97476a7211a
|
|
BLAKE2b-256 checksum How to use checksums |
3218f277666f40c3e19ec25eeaad0e33cfc1dc54a4ee2a6c0e8fda3de8bea18f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
|
Security for shecan 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.