Simple flag library for python
Project description
flag
====
A golang inspired simple flag library for python.
Installation
------------
To install flag, simply:
.. code-block:: bash
$ pip install flag
Usage
-----
.. code-block:: python
import flag
num_workers = flag.int("workers", 10, "Number of worker threads")
if __name__ == '__main__':
flag.parse()
print("Num workers %d" % num_workers)
```
====
A golang inspired simple flag library for python.
Installation
------------
To install flag, simply:
.. code-block:: bash
$ pip install flag
Usage
-----
.. code-block:: python
import flag
num_workers = flag.int("workers", 10, "Number of worker threads")
if __name__ == '__main__':
flag.parse()
print("Num workers %d" % num_workers)
```
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
Flag-0.1.0.tar.gz
(2.4 kB
view hashes)