Skip to main content

Template Project in Python

Project description

# [template-python-projects](https://github.org/djclavero/template-python-projects)

Template Project for Python using git

by djclavero@yahoo.com


## Installation

### Requirements
* Linux/Windows
* Python 2.7 and up

`$ pip install template-python-projects`

## Usage

```python
from video.formats import mp4play

# Call function
mp4play.test_mp4play()
```

## Create distribution
```
# Check the package first
$ python setup.py --help-commands
$ python setup.py check

# Create distribution
$ python setup.py sdist
```

## Upload release
```
$ twine upload dist/* # pip install twine (if required)
```

### .pypirc file
```
[pypi]
repository = https://upload.pypi.org/legacy/
username = djclavero
```

## Control of Versions (Git)
Create local repository:
```
# Create local repository
$ git init

# Create remote repository 'template-python-projects' in GitHub
```

Configuration:
```
$ git config --global user.name 'djclavero'
$ git config --global user.email djclavero@yahoo.com

# Add remote repository
$ git remote add origin https://github.org/djclavero/template-python-projects

# Set .gitignore file
$ git config --global core.excludesFile C:\Users\David\.gitignore
```

Upload to remote repository:
```
# Add files and commit
$ git status
$ git add .
$ git commit -m "init commit"

# Upload to repository
$ git push origin master
```

### .gitignore file
```
# ignore bytecode python files
*.pyc
# ignore distribution files
dist/
*.egg-info/
# ignore spyder project files
.spyproject/
```


## License
[MIT](https://choosealicense.com/licenses/mit/)

Project details


Download files

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

Files for template-python-projects, version 1.5
Filename, size File type Python version Upload date Hashes
Filename, size template_python_projects-1.5.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page