Skip to main content

athena

PYPI - Version GitHub release (latest by date)

athena is a file-based rest api client.

$ pip install haondt-athena
$ athena init
$ cat << EOF > athena/hello.py
from athena.client import Athena
from athena.test import athert

def run(athena: Athena):
    client = athena.client()
    response = client.get('https://example.com')
    athert(response.status_code).equals(200)
EOF
$ athena run athena/hello.py
hello: passed

athena provides a lightweight alternative to full-blown api platforms like Postman with a few key advantages:

  • You are free to use any text editor you would like as the api client. Lightweight editors like Neovim or VSCode allow for a much thinner client.
  • As the workbook is just a collection of plaintext files, you can keep it in the same git repo as the project it is testing.
  • Since requests are just python modules, you can script to your hearts content, and leverage external python libraries.

Installation

athena can be installed as a pypi package or from source. athena requires python>=3.11.

# from pypi
python3 -m pip install haondt-athena

# from gitlab
python3 -m pip install haondt-athena --index-url https://gitlab.com/api/v4/projects/57154225/packages/pypi/simple

# from source
git clone https://gitlab.com/haondt/athena.git
python3 -m pip install .

Usage

Quickstart guide and API / CLI reference available here: https://haondt.gitlab.io/docs/athena/

Development

Running Tests

How to run the E2E tests

  • build docker images for the api echo server and for the test runner images
./tests/e2e/build_dockerfile.sh
  • start both images to run the tests
./tests/e2e/run_tests.sh

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haondt_athena-3.0.0.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

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

haondt_athena-3.0.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file haondt_athena-3.0.0.tar.gz.

File metadata

  • Download URL: haondt_athena-3.0.0.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for haondt_athena-3.0.0.tar.gz
Algorithm Hash digest
SHA256 e096ef0aa9549e2aef8a446836e20bd39cfa8c025d8187822c01ccb4c8e0904f
MD5 1406dda84ce6df1c8a1df0105795b21d
BLAKE2b-256 296656144c3da5226b93a9e09a627d2090745cc9eb47bb337bb93b610a827b23

See more details on using hashes here.

File details

Details for the file haondt_athena-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: haondt_athena-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for haondt_athena-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b41899ab7788b839a707aea342bd597a97aa833d8ef99dcd2fa6d23b38a20e
MD5 7904812e40da8e872790a093cfcb5328
BLAKE2b-256 f6d2d54bc2d7f2c5c0b646cae2ccd8105f3f3c755c93f95e02990dac322d7601

See more details on using hashes here.

Release history Release notifications | RSS feed

5.1.2

2 files

5.1.1

2 files

5.1.0

2 files

5.0.4

2 files

5.0.3

2 files

5.0.2

2 files

5.0.1

2 files

5.0.0

2 files

4.1.1

2 files

4.1.0

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

3.0.2

2 files

3.0.1

2 files

This release

3.0.0 This release

2 files

2.4.0

2 files

2.3.2

2 files

2.3.1

2 files

2.3.0

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.2.0

1 file

1.1.0

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.0

2 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