Skip to main content

Intro

Getting Started

Installing

First install with:

$ python3 -m pip install more-argparse

Importing

Then you import it with either:

import argparse
import margparse

or

from argparse import *
from margparse import *

It's important that you do the same for both.

Checking the Contents of margparse

First, open a Python interactive session:

$ python3

Then, import it and check the contents:

>>> import margparse
>>> dir(margparse)   
['GlobbingType', '__all__', '__author__', '__builtins__', '__cached__', '__contibutor__', '__doc__', '__file__', '__license__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__title__', '__version__', '_actions_all', '_common', '_types_all', 'actions', 'types']

Have ideas for possible types or actions?

If you have ideas for more types or actions to be included in more-argparse, simply create an issue tagged "Feature Request" and enter your hopes and dreams for the type or action. If you have written a custom type or action in the past feel free to include the code in your issue. Better yet, include the code in the repository yourself and submit a pull request.

Contents

Types

GlobbingType

If the argument is a glob, glob the argument and add each filename to a list as basetype(filename), otherwise return [basetype(argument)]

Arguments

Name Type Description
basetype callable see above; use case: basetype=argparse.FileType('r')
recursive bool passed to glob.glob

Metadata

Release files for more-argparse 1.0.0.1

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

Source distribution (sdist)

Source distribution for more-argparse 1.0.0.1
File Size Uploaded Provenance Actions
more argparse-1.0.0.1.tar.gz 2.8 kB Without provenance Details for more argparse-1.0.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for more-argparse 1.0.0.1
File Interpreter ABI Platform Actions
more_argparse-1.0.0.1-py3-none-any.whl Python 3 none any Details for more_argparse-1.0.0.1-py3-none-any.whl
more_argparse-1.0.0.1-py2-none-any.whl Python 2 none any Details for more_argparse-1.0.0.1-py2-none-any.whl

Total release size: 11.8 kB

Release files / more argparse-1.0.0.1.tar.gz

Download URL more argparse-1.0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b7e39842a76ca36e3202fe886f06e9af2c9333090a5cd6dc6f786c22550ed239
BLAKE2b-256 checksum
How to use checksums
edaecd80c406a59ce3041f2909824e68612a1ac688d23e520c886b4e5af5bb27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

Release files / more_argparse-1.0.0.1-py3-none-any.whl

Download URL more_argparse-1.0.0.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1caa97b7a728b9610e1770f6dfed0d960b2bfe59b37501704a5874e67a8357fc
BLAKE2b-256 checksum
How to use checksums
5264ad7a4da5477d78f46fe1bb748d8f7ba9f37df9e5599a63a870a1f4da9d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

Release files / more_argparse-1.0.0.1-py2-none-any.whl

Download URL more_argparse-1.0.0.1-py2-none-any.whl
Size 4.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
37e20c37b0bdd1ff8018d780e63152cb82bcb3826e34517e13be8d0dfb869fc6
BLAKE2b-256 checksum
How to use checksums
05972c48e8106586dd202b42580bac06230ca398bf686927e1c71e4882c6a60e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

Security for more-argparse 1.0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0.1 This release

3 release files No provenance

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