- Notifications
You must be signed in to change notification settings - Fork9
Cookiecutter for a Python project making use of xtensor
License
xtensor-stack/xtensor-python-cookiecutter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Acookiecutter template for creating a custom Python extension with xtensor
xtensor-python-cookiecutter
helps extension authors create Python extension modules making use of xtensor.
It takes care of the initial work of generating a project skeleton with
A complete
setup.py
compiling the extension moduleA few examples included in the resulting project including
- A universal function defined from C++
- A function making use of an algorithm from the STL on a numpy array
- Unit tests
- The generation of the HTML documentation with sphinx
Installcookiecutter:
$ pip install cookiecutter
After installing cookiecutter, use the xtensor-python-cookiecutter:
$ cookiecutter https://github.com/xtensor-stack/xtensor-python-cookiecutter.git
As xtensor-python-cookiecutter runs, you will be asked for basic information aboutyour custom extension project. You will be prompted for the followinginformation:
author_name
: your name or the name of your organization,author_email
: your project's contact email,github_project_name
: name of the GitHub repository for your project,github_organization_name
: name of the GithHub organization for your project,python_package_name
: name of the Python package created by your extension,cpp_namespace
: name for the cpp namespace holding the implementation of your extension,project_short_description
: a short description for your project.
This will produce a directory containing all the required content for a minimal extensionproject making use of xtensor with all the required boilerplate for package management,together with a few basic examples. The generated Python extension requires an installationofxtensor
^0.18.0
,xtensor-python
^0.21.0
,numpy
, andpybind11
^2.1.0
.
Install the module:
$ pip install ./{{ cookiecutter.github_project_name }}/
If you haveJupyter installed, run theTest_Run notebook:
$ cd {{ cookiecutter.github_project_name }}$ jupyter notebook
About
Cookiecutter for a Python project making use of xtensor
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.