Skip to main content

Synchronized alias package for rendo-aclip

Project description

aclip

aclip is the official short-name Python package for ACLIP.

It is published in lockstep with rendo-aclip and installs the same SDK release.

Use aclip if you want the shortest install command. Use rendo-aclip if you want the canonical dependency name in project manifests.

Install

Short-name install:

pip install aclip

Canonical install:

pip install rendo-aclip

Either way, the import path is:

from aclip import AclipApp

What ACLIP gives you

  • natural CLI invocation
  • progressive Markdown help
  • structured result and error envelopes
  • sidecar manifests for distribution metadata
  • packaging helpers for shipping binary CLIs

First Working CLI

from __future__ import annotations

import sys

from aclip import AclipApp


app = AclipApp(
    name="notes",
    version="0.1.2",
    summary="A minimal notes CLI.",
    description="Create and list notes from a small local CLI.",
)

note = app.group(
    "note",
    summary="Manage notes",
    description="Create and inspect notes.",
)


@note.command(
    "create",
    summary="Create a note",
    examples=["notes note create --title hello --body world"],
)
def create(title: str, body: str) -> dict:
    """Create a note.

    Args:
        title: Title for the note.
        body: Body text for the note.
    """
    return {"note": {"title": title, "body": body}}


if __name__ == "__main__":
    raise SystemExit(app.run(sys.argv[1:]))

Typical usage:

notes --help
notes note --help
notes note create --help
notes note create --title hello --body world

Installing aclip installs rendo-aclip==0.1.2.

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

aclip-0.1.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

aclip-0.1.2-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file aclip-0.1.2.tar.gz.

File metadata

  • Download URL: aclip-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for aclip-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b4db9c694a26b61503bfc7284b32841dcca64ef31cba91ada58c86959a890538
MD5 9db366a4dbf4d2e2ebee68d1afadb2e9
BLAKE2b-256 526fc410e0659c0c81a696dfa76c9e2f926af300d7b7ab6b6025e8cb6aeb6d80

See more details on using hashes here.

File details

Details for the file aclip-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aclip-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for aclip-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e513766d52552a10e77c017eaf892664b169074fb9fbfa77673455dc7a6d2ff7
MD5 cb7d7dc0e84a433c26e310520a3e44fa
BLAKE2b-256 75e04aa6d74fafde6bf8a6edbd3fa39e1a54c4275cc01d923ab3d5577ff9a209

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