Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

myfy-commands

CLI commands module for the myfy framework.

Installation

pip install myfy-commands

Usage

from myfy.core import Application
from myfy.commands import CliModule, cli

@cli.command()
async def seed_users(user_service: UserService, count: int = 10):
    """Seed the database with test users."""
    for i in range(count):
        await user_service.create(f"user{i}@example.com")

app = Application()
app.add_module(CliModule())

Run commands with:

myfy app seed-users --count 20

Command Groups

from myfy.commands import cli

db = cli.group("db")

@db.command()
async def seed(db: Database):
    """Seed the database."""
    await db.seed()

@db.command()
async def reset(db: Database, force: bool = False):
    """Reset the database."""
    if force:
        await db.reset()

Run grouped commands:

myfy app db:seed
myfy app db:reset --force

Release files for myfy-commands 0.1.2a94

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

Source distribution (sdist)

Source distribution for myfy-commands 0.1.2a94
File Size Uploaded
myfy_commands-0.1.2a94.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for myfy-commands 0.1.2a94
File Interpreter ABI Platform
myfy_commands-0.1.2a94-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / myfy_commands-0.1.2a94.tar.gz

Download URL myfy_commands-0.1.2a94.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8f2df39c4e86afced0b506d29f35c76837af75e8627d848f434dfcc334cafb8b
BLAKE2b-256 checksum
How to use checksums
7f514699dbf3d6d15d4a85786a2d7f8216192209b2d6d26f725fdab9a0f36c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 11, 2026.

Transparency log

Release files / myfy_commands-0.1.2a94-py3-none-any.whl

Download URL myfy_commands-0.1.2a94-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51da99e95d13418abd3a7ae2944538a5954be41a3a5b6916732a8fab18f8c2c8
BLAKE2b-256 checksum
How to use checksums
068046fc2d1c6e0037b2b0ff7dcd5f923d3a0249c79ccf5a8f8ddb19de66563a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2a94 This release

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