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/)
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
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
Close
Hashes for template_python_projects-1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242e46b3227ce88cda45f4fdcef21d123eb17849e9f21a53bfee482a3e08fbce |
|
MD5 | 00af4e51db23c40dda24a479e7031ed4 |
|
BLAKE2b-256 | 02317be847049136a3703ea16e691c758b2057f5f659ec61f7c12f2f99611765 |