django-minha-lib
Este projeto é um teste de criação de uma biblioteca Django.
Instalação
Você pode instalar a biblioteca usando pip ou poetry:
pip install django-minha-lib
ou
poetry add django-minha-lib
Configuração
Adicione django_minha_lib à lista de INSTALLED_APPS no seu settings.py:
INSTALLED_APPS = [
# ... outras apps ...
'django_minha_lib',
]
Migrações
Após instalar e configurar, rode os comandos:
python manage.py makemigrations
python manage.py migrate
Pronto! Sua biblioteca Django está instalada e pronta para uso.
Rodando localmente como desenvolvedor
Para rodar o projeto Django localmente durante o desenvolvimento, siga os passos abaixo:
git clone https://github.com/seu-usuario/django-minha-lib.git
cd django-minha-lib
poetry install
cd demo_project
pip install -e ..
poetry run ./manage.py runserver
Atualizando e publicando a biblioteca
Para atualizar a versão, buildar e publicar sua biblioteca, utilize os comandos abaixo:
poetry version patch # para avançar a versão (ex: 0.1.0 → 0.1.1)
poetry build
tar -tzf dist/*.tar.gz | head -20 # para ver os arquivos dentro do pacote
poetry publish
Metadata
Release files for django-minha-lib 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_minha_lib-0.1.5.tar.gz | 3.0 kB | Without provenance | Details for django_minha_lib-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_minha_lib-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for django_minha_lib-0.1.5-py3-none-any.whl |
Total release size: 8.4 kB
Release files / django_minha_lib-0.1.5.tar.gz
| Download URL | django_minha_lib-0.1.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d730e23365edb6d3d77cd68cb438788d7bbf7e74c9f8012b36302d1986049f0d
|
|
BLAKE2b-256 checksum How to use checksums |
f3ba77fc5b511447cefd59fd07693b6245b72c320f865806747cff7336135337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2
|
Release files / django_minha_lib-0.1.5-py3-none-any.whl
| Download URL | django_minha_lib-0.1.5-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a8430439f0d6cf5ff0cbaffe06a3645a8187225074ee4f03433a7e794d7cafa
|
|
BLAKE2b-256 checksum How to use checksums |
867cd9c102280849c2c296532765a1532b56874666eb679de801cbaf6bf5aacf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2
|
Security for django-minha-lib 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.