# dnsbin-cli
[](https://travis-ci.org/thomas-maurice/dnsbin-cli)
This is the commandline for the dnsbin project (https://github.com/thomas-maurice/dnsbin)
# Using the commandline
To use the command line you need to install few packages using pip :
```bash
pip install requests dnspython clifactory
```
## Posting a file
```bash
./dnsbin.py post someserver.tld file_name
87597b44-d913-4740-9091-d9bd62b8f422
```
Note that if the file is not ascii only, it will be encoded
before being uploaded.
Done ! Your paste has id `87597b44-d913-4740-9091-d9bd62b8f422`
## Getting a paste
```bash
./dnsbin.py get someserver.tld 87597b44-d913-4740-9091-d9bd62b8f422
Paste is 15 chunks long
* Getting 1.87597b44-d913-4740-9091-d9bd62b8f422 chunk
* Getting 2.87597b44-d913-4740-9091-d9bd62b8f422 chunk
... Some more chunks ...
* Getting 14.87597b44-d913-4740-9091-d9bd62b8f422 chunk
* Getting 15.87597b44-d913-4740-9091-d9bd62b8f422 chunk
Your paste :
... The text you did paste ! ...
```
That was easy :)
[](https://travis-ci.org/thomas-maurice/dnsbin-cli)
This is the commandline for the dnsbin project (https://github.com/thomas-maurice/dnsbin)
# Using the commandline
To use the command line you need to install few packages using pip :
```bash
pip install requests dnspython clifactory
```
## Posting a file
```bash
./dnsbin.py post someserver.tld file_name
87597b44-d913-4740-9091-d9bd62b8f422
```
Note that if the file is not ascii only, it will be encoded
before being uploaded.
Done ! Your paste has id `87597b44-d913-4740-9091-d9bd62b8f422`
## Getting a paste
```bash
./dnsbin.py get someserver.tld 87597b44-d913-4740-9091-d9bd62b8f422
Paste is 15 chunks long
* Getting 1.87597b44-d913-4740-9091-d9bd62b8f422 chunk
* Getting 2.87597b44-d913-4740-9091-d9bd62b8f422 chunk
... Some more chunks ...
* Getting 14.87597b44-d913-4740-9091-d9bd62b8f422 chunk
* Getting 15.87597b44-d913-4740-9091-d9bd62b8f422 chunk
Your paste :
... The text you did paste ! ...
```
That was easy :)
Release files for dnsbin-cli 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dnsbin-cli-0.0.3.tar.gz | 3.2 kB | Details |
Release files / dnsbin-cli-0.0.3.tar.gz
| Download URL | dnsbin-cli-0.0.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ac9d82a522d1dcb925b64b45513642f7c85d7632dad231eaea99b5463ba8bac
|
|
BLAKE2b-256 checksum How to use checksums |
591555943f31e6c360c5245bd69e152403a070b00176f8a0cb61b78758bbd284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |