Project1
A Python project using Poetry for dependency management.
Basic Poetry Commands
# Check Poetry version
poetry --version
# Create a new project
poetry new project1
# Check Python version
poetry run python --version
# Add a package dependency
poetry add PACKAGE_NAME
# Example: poetry add requests
# Run a Python file
poetry run python FILE_PATH
# Example: poetry run python ./src/project1/main.py
# Run tests
poetry run pytest
# Build the package
poetry build
# Publish to PyPI
poetry publish
Publishing to PyPI
Prerequisites
- Create a PyPI account at PyPI.org
- Generate an API token in your PyPI account settings
Configuration
# Configure your PyPI token
poetry config pypi-token.pypi YOUR_API_TOKEN_HERE
# Or use environment variable
export POETRY_PYPI_TOKEN_PYPI="your_token_here"
Publishing Steps
# 1. Build the package
poetry build
# 2. Publish to PyPI
poetry publish
# 3. Verify your package is published
# Check https://pypi.org/project/project1/
Testing with TestPyPI (Recommended for first-time publishers)
# Add TestPyPI repository
poetry config repositories.testpypi https://test.pypi.org/legacy/
# Configure TestPyPI token
poetry config pypi-token.testpypi YOUR_TESTPYPI_TOKEN_HERE
# Publish to TestPyPI first
poetry publish --repository testpypi
Development
# Install dependencies
poetry install
# Activate virtual environment
poetry shell
# Add development dependencies
poetry add --group dev pytest
# Run tests
poetry run pytest
Project Structure
project1/
├── pyproject.toml # Project configuration and dependencies
├── poetry.lock # Locked dependency versions
├── src/
│ └── project1/ # Source code
│ ├── __init__.py
│ └── main.py
└── tests/ # Test files
└── test_project1.py
Metadata
Release files for adnan-project1 0.1.0
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 |
|---|---|---|---|---|
| adnan_project1-0.1.0.tar.gz | 1.9 kB | Without provenance | Details for adnan_project1-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adnan_project1-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for adnan_project1-0.1.0-py3-none-any.whl |
Total release size: 4.5 kB
Release files / adnan_project1-0.1.0.tar.gz
| Download URL | adnan_project1-0.1.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03675f2dbda8eb66f8a7b68abc1f74822b1fa099ac623292f449f17c12192299
|
|
BLAKE2b-256 checksum How to use checksums |
3b4b865e8534489ead56d0e21f8cc16c6314dbca257155199189258fcba4fdb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.13.3 Darwin/24.3.0
|
Release files / adnan_project1-0.1.0-py3-none-any.whl
| Download URL | adnan_project1-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c87f12377e9dcaddcb816434e86cfed40cfca58fbe80a1bc16cb78ead65ea787
|
|
BLAKE2b-256 checksum How to use checksums |
819c80636963fde604fa57e99b91752bfe4956fb418ac3138ce48258fcf7b0b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.13.3 Darwin/24.3.0
|
Security for adnan-project1 0.1.0
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.