Skip to main content

Wrapper oficial da Plataforma Automaxia para Python

Project description

Material de apoio

O primeiro passo é ter o código de sua biblioteca separado em uma pasta

  • meu_pacote/ # Pasta do projeto
    • codigos_da_biblioteca/ # Diretório onde deve ficar os códigos de sua biblioteca
    • LICENCE # Um arquivo com a licença da sua lib
    • README.MD # Uma descrição do projeto
    • setup.py # Código Python responsável pelo empacotamento

Adicione uma licença

The MIT License (MIT)

Copyright (c) [year] [fullname]

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.

Adicione um readme

# Sua descrição aqui

Instale a lib setuptools

pip install setuptools

Crie o setup.py

from setuptools import setup

with open("README.md", "r") as arq:
    readme = arq.read()

setup(name='wrapper-panda-video',
    version='0.0.1',
    license='MIT License',
    author='Caio Sampaio',
    long_description=readme,
    long_description_content_type="text/markdown",
    author_email='caio@pythonando.com.br',
    keywords='panda video',
    description=u'Wrapper não oficial do Panda Video',
    packages=['panda_video'],
    install_requires=['requests'],)

Execute o comando

python setup.py sdist

Instale o twine para fazer o upload para o pypi

pip install twine

Crie uma conta no pypi

Execute o comando para criar um repositório de teste

twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Ou para criar um repositório oficial:

twine upload dist/*
user: __token__
pass: pypi-AgEIcHlwaS5vcmcCJDcwNDk1ZGM5LTA3MmQtNDc0Mi05YzhjLTNiZjgzMWRjMzJlMwACKlszLCI0OWI3YTc0OS03NDViLTQ2ZTAtYjkzZS05OTAxZGZhMGI2ZTIiXQAABiCi1Q7z6n4xADvsM8AJZDA-Q85MgkElshRg6bu4I_Vv6Q


twine upload -u __token__ -p pypi-AgEIcHlwaS5vcmcCJDcwNDk1ZGM5LTA3MmQtNDc0Mi05YzhjLTNiZjgzMWRjMzJlMwACKlszLCI0OWI3YTc0OS03NDViLTQ2ZTAtYjkzZS05OTAxZGZhMGI2ZTIiXQAABiCi1Q7z6n4xADvsM8AJZDA-Q85MgkElshRg6bu4I_Vv6Q dist/*

pypi-AgEIcHlwaS5vcmcCJDdkMTI4NjY5LWM5YmEtNDJiOC04OGNkLTFkMmRmOWEzNzE3NAACKlszLCI0OWI3YTc0OS03NDViLTQ2ZTAtYjkzZS05OTAxZGZhMGI2ZTIiXQAABiAAEL1XGUJwrn_9_-rTAtFiTogKFdOfDMpqb649_YCerw

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

plataforma-automaxia-api-0.0.5.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file plataforma-automaxia-api-0.0.5.tar.gz.

File metadata

File hashes

Hashes for plataforma-automaxia-api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 410827a4df03a50b9025bfcdec6ff1bf80abf577972b5bbf4f6a016f2ee5e23f
MD5 321f6bb163f6daa991165b89513edbad
BLAKE2b-256 6e05ea9306934c0183a81d636d176278dc781dbd582ed1c3e3ed180b2a04846b

See more details on using hashes here.

Supported by

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