Skip to main content

URL shortening service to be used in a microservices environment.

Project description

# tinyurls

URL shortening service to be used in a microservices environment.

This service does the following:
1. Takes a long url and stores an md5 key and the url in a database table.
The md5 key is used to lookup the long url. This step returns an short link
with md5.
2. Takes a short link and redirects you to the long link.





## Installation
Use virtual environment
```bash
virtualenv env
source env/bin/activate

```
Change into tinyurls directory and install
```
cd tinyurls
python setup.py install

```

## Execute
```bash
tinyurls -h
usage: tinyurls [-h] [-p PORT] [-d DATABASE]

optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Port used for this service
-d DATABASE, --database DATABASE Database to use


tinyurls -p 8888
```

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

tinyurls-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tinyurls-0.0.2-py3.6.egg (8.9 kB view details)

Uploaded Egg

tinyurls-0.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file tinyurls-0.0.2.tar.gz.

File metadata

  • Download URL: tinyurls-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for tinyurls-0.0.2.tar.gz
Algorithm Hash digest
SHA256 562c70555a7f3e75a9a9ae83fdbb7423f877dfee14bf77eec17595e14faf63ce
MD5 83a5bdc58d8245720c79dae0a0b94786
BLAKE2b-256 494268450b242ffb5a7e211c751d07f2cebd6189a0d1e13cae33585fcf9f2645

See more details on using hashes here.

File details

Details for the file tinyurls-0.0.2-py3.6.egg.

File metadata

  • Download URL: tinyurls-0.0.2-py3.6.egg
  • Upload date:
  • Size: 8.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for tinyurls-0.0.2-py3.6.egg
Algorithm Hash digest
SHA256 e6106fa650074f7503076f961c7704067b29bfcae8891245118908bbd0a95851
MD5 9eae701a6c74016c91dd8e3365c21c68
BLAKE2b-256 2b5a26851e9e4239f3ed670e8e22db2a7cc94fcc3cfc58541eb8ea62bd63aab8

See more details on using hashes here.

File details

Details for the file tinyurls-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tinyurls-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for tinyurls-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cedea8ca4747994a9457b58a88f6641336e61c8249f29a627143a2d630fb7911
MD5 d38609016d87f6c08200350dff74a946
BLAKE2b-256 f5598742de7712a5cad972bac795b8d8e6bfe92d8e0f7eea273e085dd2c444fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page