A command-line file sharing utility for ge.tt
Project description
GettUp
======
GettUp is a simple command line utility which lets you share and upload files to the [ge.tt](http://ge.tt) sharing service quickly and easily.
## Installation
GettUp is distributed as a python package. Do the following to install
```
sudo pip install gettup
OR
sudo easy_install gettup
OR
# download source and cd to it
sudo python setup.py install
```
## Usage
1. Make an account on [Ge.tt](http://ge.tt)
2. Obtain an api key by [creating an app](http://ge.tt/developers/create).
3. Run the application. The app will ask for your credentials the first the app is run.
```
$ gett file1.txt
Please enter your Ge.tt email: example@example.com
Please enter your Ge.tt password: verysecurepassword
Please enter your API KEY: supersecretapikey
Validating credentials ...
Credentials verified ...
Constructing a new share ...
Uploading file: README.md
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/6zkcEkB1/v/0
----------------------------------------
```
## Examples
`gett` displays a helpful help text when run with the `-h` flag.
```
$ gett
usage: gett.py [-h] [-s share_id] [-t share_title] [-i share_id]
[-d share_id [share_id ...]] [-l] [-r file_url [file_url ...]]
[-q]
[files [files ...]]
Upload files to ge.tt via the command line
```
Command Examples -
```
$ gett # show help
$ gett file1 file2 file3 # upload files (in same share)
$ gett *.py # linux globs (upload)
$ gett *.py -s sharename # upload file in the specific share
$ gett *.py -s sharename -t title # gives the title to the new share
$ gett --list # show list of shares
$ gett -d share1 share2 share3 # deletes the shares
$ gett -r url1 url2 url 3 # deletes the file url
$ gett -q {etc} # quiet mode
$ gett -i sharename # get share info
```
To upload a file, use the -u flag. By default, `gett` will create a new share for uploading the file. Use the -s flag, alongwith a sharename to upload to an existing share
```
$ gett something.txt
Constructing a new share ...
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/1NcgabB1/v/0
----------------------------------------
$ gett something.txt -s 5d1ctaB1
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/5d1ctaB1/v/1
```
To delete a share use the -d flag. To get more info about a share, use the -s flag accompanied by a sharename.
```
$ gett -d 1NcgabB1
Destroying share ...
1NcgabB1 share has been destroyed
$ gett -r http://ge.tt/6zkcEkB1/v/0
Deleting file ...
File has been successfully destroyed
```
## Upgrade
To upgrade GettUp run the following command
```
sudo pip install -U gettup
```
## Thanks
Thanks to [gett-cli](https://bitbucket.org/mickael9/gett-cli) for inspiration, which is, at present, for Python 3 only.
## License
Gettup is released under the MIT license.
======
GettUp is a simple command line utility which lets you share and upload files to the [ge.tt](http://ge.tt) sharing service quickly and easily.
## Installation
GettUp is distributed as a python package. Do the following to install
```
sudo pip install gettup
OR
sudo easy_install gettup
OR
# download source and cd to it
sudo python setup.py install
```
## Usage
1. Make an account on [Ge.tt](http://ge.tt)
2. Obtain an api key by [creating an app](http://ge.tt/developers/create).
3. Run the application. The app will ask for your credentials the first the app is run.
```
$ gett file1.txt
Please enter your Ge.tt email: example@example.com
Please enter your Ge.tt password: verysecurepassword
Please enter your API KEY: supersecretapikey
Validating credentials ...
Credentials verified ...
Constructing a new share ...
Uploading file: README.md
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/6zkcEkB1/v/0
----------------------------------------
```
## Examples
`gett` displays a helpful help text when run with the `-h` flag.
```
$ gett
usage: gett.py [-h] [-s share_id] [-t share_title] [-i share_id]
[-d share_id [share_id ...]] [-l] [-r file_url [file_url ...]]
[-q]
[files [files ...]]
Upload files to ge.tt via the command line
```
Command Examples -
```
$ gett # show help
$ gett file1 file2 file3 # upload files (in same share)
$ gett *.py # linux globs (upload)
$ gett *.py -s sharename # upload file in the specific share
$ gett *.py -s sharename -t title # gives the title to the new share
$ gett --list # show list of shares
$ gett -d share1 share2 share3 # deletes the shares
$ gett -r url1 url2 url 3 # deletes the file url
$ gett -q {etc} # quiet mode
$ gett -i sharename # get share info
```
To upload a file, use the -u flag. By default, `gett` will create a new share for uploading the file. Use the -s flag, alongwith a sharename to upload to an existing share
```
$ gett something.txt
Constructing a new share ...
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/1NcgabB1/v/0
----------------------------------------
$ gett something.txt -s 5d1ctaB1
Setting up a file name ...
Uploading the file...
Upload successful. Here's your url: http://ge.tt/5d1ctaB1/v/1
```
To delete a share use the -d flag. To get more info about a share, use the -s flag accompanied by a sharename.
```
$ gett -d 1NcgabB1
Destroying share ...
1NcgabB1 share has been destroyed
$ gett -r http://ge.tt/6zkcEkB1/v/0
Deleting file ...
File has been successfully destroyed
```
## Upgrade
To upgrade GettUp run the following command
```
sudo pip install -U gettup
```
## Thanks
Thanks to [gett-cli](https://bitbucket.org/mickael9/gett-cli) for inspiration, which is, at present, for Python 3 only.
## License
Gettup is released under the MIT license.
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
gettup-0.2.0.tar.gz
(5.0 kB
view details)
File details
Details for the file gettup-0.2.0.tar.gz
.
File metadata
- Download URL: gettup-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb2db2befb6b43e5996b0d0ffb7f2d9813cdf10b8513bfadd0f01ba5f59e976f |
|
MD5 | f335954bcd80468cd64d68f7c23b3811 |
|
BLAKE2b-256 | a2a8437ad542da3168fc67ff04324fc95d07c6cac81a065c92e1d3b965eaed12 |