Skip to main content

Nox sessions with options

Project description

NoxOpt

Nox sessions with options!

Usage

Define a session with typed parameters:

from noxopt import NoxOpt, Session

nox = NoxOpt()

@nox.session
def my_session(session: Session, some_option: int):
    session.echo(some_option)

Now you can pass this session the declared option via the command line:

nox -s my-session -- --some-option 10

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

noxopt-0.0.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: noxopt-0.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for noxopt-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9a4d03694e3cedb9c84bd4c30fd371347e711c6d607db1d8a7abd797a07c9003
MD5 9cf0ab27fa2ceec3d62c174c5e630186
BLAKE2b-256 e66905d70c325cdc7770f03c680aab08ecbcaed7cecd50a6b3e0810472de612e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: noxopt-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for noxopt-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a9b21df6398a16f72ec9fe6a365fc9266ecfd098e5082edcd92bda7e7719546
MD5 03fd412826344777dd6e72fa92282620
BLAKE2b-256 9e46da787ad0cb273622fc0a13716cfdc8de8d7402d28c0f02156413baed6de8

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