Automated fitting of continuum and flares in GRB lightcurves.
Project description
This is a structure template for Python command line applications, ready to be released and distributed via setuptools/PyPI/pip for Python 2 and 3.
Please have a look at the corresponding article: http://gehrcke.de/2014/02/distributing-a-python-command-line-application/
Usage
Clone this repository and adopt the bootstrap structure for your own project. This is just a starting point, but I hope a good one. From there on, you should read and follow https://packaging.python.org/, the definite resource on Python packaging.
Behavior
Flexible invocation
The application can be run right from the source directory, in different ways:
Treating the bootstrap directory as a package and as the main script:
$ python -m bootstrap arg1 arg2 Executing bootstrap version 0.2.0. List of argument strings: ['arg1', 'arg2'] Stuff and Boo(): <class 'bootstrap.stuff.Stuff'> <bootstrap.bootstrap.Boo object at 0x7f43d9f65a90>
Using setup.py develop (documented here):
# This installs the bootstrap command linking back # to the current checkout, quite neat for development! $ python setup.py develop ... $ bootstrap arg1 arg2
Using the bootstrap-runner.py wrapper:
$ ./bootstrap-runner.py arg1 arg2 Executing bootstrap version 0.2.0. List of argument strings: ['arg1', 'arg2'] Stuff and Boo(): <class 'bootstrap.stuff.Stuff'> <bootstrap.bootstrap.Boo object at 0x7f149554ead0>
Installation sets up bootstrap command
Situation before installation:
$ bootstrap bash: bootstrap: command not found
Installation right from the source tree (or via pip from PyPI):
$ python setup.py install
Now, the bootstrap command is available:
$ bootstrap arg1 arg2 Executing bootstrap version 0.2.0. List of argument strings: ['arg1', 'arg2'] Stuff and Boo(): <class 'bootstrap.stuff.Stuff'> <bootstrap.bootstrap.Boo object at 0x7f366749a190>
On Unix-like systems, the installation places a bootstrap script into a centralized bin directory, which should be in your PATH. On Windows, bootstrap.exe is placed into a centralized Scripts directory which should also be in your PATH.
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
Built Distribution
File details
Details for the file laff-0.3.2.tar.gz
.
File metadata
- Download URL: laff-0.3.2.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89498f62d5c74d3de81767c1eacbf8ce4745ad874c69b3ecd246c5d6eb4976b2 |
|
MD5 | 873c301469ecf7de62715fc330c51492 |
|
BLAKE2b-256 | dfe738931b9254d4ab5c449da4631bcdc5de5d83e0c02a1f452c7264a2ac135f |
File details
Details for the file laff-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: laff-0.3.2-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230e99b975caadbd9bb39bbd68060778149d771d942b5a0854652c2bd56308ce |
|
MD5 | 75a54ed60cbc973ec48eb17ebe5fd699 |
|
BLAKE2b-256 | a5b0995c4b7857351c33c2d6eeaed28dc2823f8133fbfc94a6ef56e18f005055 |