Skip to main content
Build status Build Status Windows https://badge.fury.io/py/project_name.svg PYPI Package GitHub Issues MIT License https://coveralls.io/repos/sdpython/python3_module_template/badge.svg?branch=master&service=github Code Health Requirements Status https://codecov.io/github/sdpython/python3_module_template/coverage.svg?branch=master

Links:

Introduction

This project is a skeleton for any new project. It contains:

  • a source folder: src

  • a unit test folder: _unittests, go to this folder and run run_unittests.py

  • a _doc folder: _doc, it will contains the documentation

  • a file setup.py to build and to install the module

All theses steps were only tested on Windows. Suppot for linux will be added later. To create your own project, you need to rename the folder project_name in src by your true module name. You also need to replace project_name wherever it is found:

  • project_var_name = 'project_name' in setup.py, make_help.py and _doc/sphinxdoc/source/conf.py

  • from src.project_name.subproject.myexample import myclass in _unittests/ut_example/test_example.py

  • many places in _doc/sphinxdoc/source/index.rst

  • many places in README.rst

The project is also hosted here where you can find a link to the generated documentation based on this template.

Automation

Adding a new module or subpackage

Any new module or subpackage should be added in src/project_name. Every subfolder should contain a file __init__.py. If the new file needs an existing submodule, you need to add something like the following:

import os,sys

from ..subproject.myexample import myclass

You should use relative imports as much as possible. To add a module at deeper level than the previous one, you should add relative imports in every __init__.py along the way.

Versions

  • 0.2 - 2016/??/??
    • change: update for pyquickhelper >= 1.4

  • 0.1 - 2016/03/26
    • new: first version

    • fix: the setup does not need the file README.rst anymore

    • add: unit test to check the file README.rst follows the syntax of docutils 0.8 (for pipy)

    • add: add a unit test to run all notebooks offlines

Metadata

Release files for project_name 0.2.175

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

Source distribution (sdist)

Source distribution for project_name 0.2.175
File Size Uploaded
project_name-0.2.175.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for project_name 0.2.175
File Interpreter ABI Platform
project_name-0.2.175-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / project_name-0.2.175.tar.gz

Download URL project_name-0.2.175.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1e9c16e98afcc992fc32ba0741ec0edd5db4887f63a22e3fe44d0b8dfd0c29ef
BLAKE2b-256 checksum
How to use checksums
506551e2cf7add30c83ebcaf3a0061152f91d3ca2795b6609a4f1a3abbbda871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / project_name-0.2.175-py3-none-any.whl

Download URL project_name-0.2.175-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bc4908ea8188434e81359fde64348786370ad77057a8eb402b83902d350ea36
BLAKE2b-256 checksum
How to use checksums
79a6f03a472621f545f4eb16bacbd20765dd18114e4ace7452aa9a0cff13b6fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.175 This release

2 release files

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