Skip to main content

'module-starter' for Python

Project description

MIT License python PyPI
‘module-starter’ for Python.

Requirements

  • python >= (2.6, 3.3)

Installation

$ pip install python-starter

Usage

$ python-starter --help
usage: python-starter [options] target

options:
  --author=author    author name (default: git user.name)
  --email=email      author email (default: git user.email)
  --license=license  license (default: MIT)
  --list             list available licenses
  --version          show program's version number and exit
  --help             show this message and exit

Example

$ git config --get user.name
foo
$ git config --get user.email
foo@bar.com
$ python-starter example

example/setup.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

config = {
    'name': 'example',
    'author': 'foo',
    'author_email': 'foo@bar.com',
    'url': '',
    'description': '',
    'long_description': open('README.rst', 'r').read(),
    'license': 'MIT',
    'version': '0.0.1',
    'install_requires': [],
    'classifiers': [
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Development Status :: 1 - Planning",
    ],
    'packages': find_packages(),
}

if __name__ == '__main__':
    setup(**config)

example/LICENSE

MIT License

Copyright (c) 2017 foo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

example/README.rst

example
--------

example/.gitignore

__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
.python-version
.env
venv/
ENV/

License

Distributed under MIT License.

Author

Kojiro TANI (kojiro0531@gmail.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-starter-0.1.2.tar.gz (33.8 kB view details)

Uploaded Source

File details

Details for the file python-starter-0.1.2.tar.gz.

File metadata

File hashes

Hashes for python-starter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 726ae1021cd4a1c4828e9bdad17be15bf567f3a14c17dd2031a16e2452a01b3d
MD5 64fdf2b6f5595943da411e1e8befcb5b
BLAKE2b-256 711990b6ca09c626f60e60437d5e9bb3694c081ba01ebe2554c35a797f249c6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page