Skip to main content

intuitive admin library

Project description

hostess

overview

hostess provides lightweight, Pythonic interfaces to distributed resources, system processes, and Python internals. It includes high-level modules that provide special functionality for working with EC2 instances and S3 buckets, and a framework (station) for workflow coordination -- along with all their lower-level building blocks.

hostess reduces syntactic headaches and boilerplate while still allowing low-level manipulation and, more broadly, still feeling like code. hostess has a special emphasis on fitting intuitively and idiomatically into common data science and scientific analysis workflows, but it is fundamentally a general-purpose utility and administration library.

installation

hostess is available on PyPI and conda-forge. We recommend installing it into a Conda environment using conda: conda install -n my_environment -c conda-forge hostess.

The conda-forge package installs all optional dependencies other than those for tests and Notebooks. If you require more granular control over dependencies, please install from source.

documentation

Examples for working with EC2 instances can be found in this jupyter notebook.

Examples for working with S3 buckets can be found in this jupyter notebook.

You can find an API reference and full changelog on readthedocs. Documentation Status

compatibility

  1. hostess's core features are closely linked to the shell, so it is only fully compatible with Unix-scented operating systems. Linux and MacOS count, as does Windows Subsystem for Linux (WSL). Windows outside of WSL doesn't.
  2. Some hostess modules require network access, specifically ssh and the aws submodules. The aws submodules also require an AWS account. See the example Notebooks for more details on this.
  3. hostess requires Python >= 3.9.
  4. hostess is very lightweight. If a machine has enough resources to run a Python interpreter, it can probably run hostess.
  5. hostess.station is not fully compatible with MacOS or WSL. MacOS and WSL compatibility is planned. All other parts of hostess are compatible with MacOS and WSL.

cautions

hostess is a reliable and fairly feature-complete beta in active use on multiple projects. However, we do not yet guarantee interface stability or backwards compatibility.

Also, as with any system administration software, we recommend using it very carefully.

tests

hostess includes a simple test suite compatible with pytest. More comprehensive tests are planned. (In particular, non-local networking features currently lack test coverage.) You can run the tests by executing pytest -s in the root directory. The -s flag is mandatory because pytest captures stdout by default, which breaks some hostess features covered by the tests.

Tests require two additional dependencies: pytest and pillow.

licensing

You can do almost anything with this software that you like, subject only to the extremely permissive terms of the BSD 3-Clause 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

hostess-0.10.2.tar.gz (482.1 kB view details)

Uploaded Source

Built Distribution

hostess-0.10.2-py3-none-any.whl (496.9 kB view details)

Uploaded Python 3

File details

Details for the file hostess-0.10.2.tar.gz.

File metadata

  • Download URL: hostess-0.10.2.tar.gz
  • Upload date:
  • Size: 482.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for hostess-0.10.2.tar.gz
Algorithm Hash digest
SHA256 463cf413f293e608b90fd1af0f101b6886e2bd3545b79caf3a4b8709f896a189
MD5 52379c389b6b754cc4010c898f4178a1
BLAKE2b-256 9dbf921dc0689357442c023b82f6460734a08888518af9441e0768e878372a4b

See more details on using hashes here.

File details

Details for the file hostess-0.10.2-py3-none-any.whl.

File metadata

  • Download URL: hostess-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 496.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for hostess-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8830657c937840f6cb35940cdc6c9ee168964803248d3062b21ca06f8e05f7f0
MD5 e9acb10fbd7179d0165975b4bfcd73c6
BLAKE2b-256 5347b329a2a7b5a4fb4a8e21a13b8b414d4020c995ab05ba98876256426d47bc

See more details on using hashes here.

Supported by

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