Standalone version of the HuggingFace ArgParser from the Transformers library
Project description
HF Argparser
Standalone Argument Parser from HuggingFace Transformers.
This is a standalone version of the argument parser used in the HuggingFace Transformers library. It is a simple wrapper around the argparse
library that allows you to easily define your command-line arguments for your scripts using dataclasses.
Installation
pip install hf-argparser
Usage
from dataclasses import dataclass
from hf_argparser import HfArgumentParser, HFArg
See the Transformers documentation for more information on how to use the HFArg
class.
Todo
- [] Automate pulling new changes to
hf_argparser
fromtransformers
repo. - [] Automate creating new releases on PyPi.
- [] Add tests.
- [] Improve README.
Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hf_argparser-0.1.0.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for hf_argparser-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ece1ee14d3f422bcb9d7a82843032f15c43817c59831a17f24d3cdb764531ea |
|
MD5 | 4fb2e20e13d226eda4089cdef0c9e329 |
|
BLAKE2b-256 | f96f4a25f9906c838db7afe0c3a6f233cc44447ad77a69673854b6e0fe2d8903 |