Skip to main content

getserv

Build status License

This tool is used to retrieve stable servers from various services.

Usage

The package is uploaded to pypi.org. In order to install the package you should use pip:

pip install getserv

python >= 3.6 is required

Basic usage

Basically the driver is responsible for delivering the ips to the main program. The main program will just scan all the ips received from the driver and checks whether a service on a given port is available:

getserv [...args] {driver_name} [...args]

Changing the port to scan

The default port is 22. You may change it with the --test-port (-p) option.

Listing all IPs

The default beheavior is to only return one address. You can list all available server IPs by adding the --list-all (-a) option.

The DigitalOcean driver

The digitalocean driver is used to filter droplets by multiple tags. Since the doctl can only filter by single tags, the driver will fallback to the REST API. It'll get information for the requested droplets and filters by the given tags. In order to get a running droplet from your droplet stack you execute this:

getserv digitalocean tag1,tag2

To authenticate yourself you can use either a cli argument or a environemt variable:

getserv digitalocean \
  --digitalocean-access-token XXXXXXXXXXX \
  tag1,tag2

Or to use the environment varible:

export DIGITALOCEAN_ACCESS_TOKEN=XXXXXXXX
getserv digitalocean tag1,tag2

If everything is configured properly you should receive a single IP based on the availability of your droplets

License

See the LICENSE file for license rights and limitations (MIT).

Release files for getserv 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getserv 0.0.4
File Size Uploaded
getserv-0.0.4.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for getserv 0.0.4
File Interpreter ABI Platform
getserv-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / getserv-0.0.4.tar.gz

Download URL getserv-0.0.4.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cd5d4086dccb798caba8052f60e8a4ed2caf7ef3b402b05427125fea2479f4a9
BLAKE2b-256 checksum
How to use checksums
d580c79968deaa6850af0f67ce310983a767d2b0ebe140a7725842ec00b3c196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Release files / getserv-0.0.4-py3-none-any.whl

Download URL getserv-0.0.4-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
579e781931e0426212544240d34378639c66ebdee1ecfc93fe7d511f411c944e
BLAKE2b-256 checksum
How to use checksums
20aeb24d1937cdbbcc9b257f5cbeac90afb4f4cececf870a8a64b6579fe58b77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page