Skip to main content

A Python package for deep learning solutions

Project description

deep-solutions

A library that provides useful tools and standard solutions for deep learning tasks.

PyPI version Python Version License

📦 Installation

Install from PyPI:

pip install deep-solutions

Install from source (for development):

git clone https://github.com/FrostyHec/deep-solutions.git
cd deep-solutions
pip install -e ".[dev]"

🚀 Quick Start

from deep_solutions import hello_world, DeepSolution, format_output

# Simple function
message = hello_world()
print(message)  # Output: Hello from deep-solutions!

# Use DeepSolution class
solution = DeepSolution("my_solution")
result = solution.process("data")
print(result)  # Output: Processing data with my_solution

# Format output
formatted = format_output("result data", prefix="Output")
print(formatted)  # Output: Output: result data

📚 Documentation

Document Description
Developer Guide How to clone, setup environment, and contribute
Project Structure Directory structure, dependency management, Python version requirements
Code Standards Commit conventions, PR workflow, merge requirements
Local Testing Guide Using check.sh, tox, pytest, etc.
CI Workflow GitHub Actions CI/CD documentation
Publishing Guide How to publish to PyPI

Note: Chinese documentation is available in docs/zh-CN/

🛠️ Development

Setup Development Environment

We use the Pip-in-Conda strategy for dependency management:

  • Conda manages only Python version and pip
  • All package dependencies are managed in pyproject.toml
  • This ensures development and production dependencies are always in sync
# Create conda environment (only Python + pip)
conda env create -f environment.yml

# Activate environment
conda activate deep-solutions

# Install package with all dependencies from pyproject.toml
pip install -e ".[dev]"

Run Tests

# Run all tests
pytest

# Run with coverage
pytest --cov=deep_solutions --cov-report=html

Code Quality

# Format code (using Ruff)
ruff format src/ tests/

# Lint code
ruff check src/ tests/

# Type check
mypy src/

# Run all checks at once
./scripts/check.sh

📝 Features

  • Core Functionality: Essential deep learning utilities
  • Easy to Use: Simple and intuitive API
  • Well Tested: Comprehensive test coverage
  • Type Hints: Full type annotation support
  • Extensible: Easy to extend with new features

📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please see our Developer Guide for details.

⚠️ Important: Development must be done in Python 3.8 environment. See Project Structure for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Run checks before commit (./scripts/check.sh)
  4. Commit your changes (git commit -m 'feat: add amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request

Merge Requirements: PRs must pass all CI checks and receive at least one review approval.

📧 Contact

🔗 Links


Note: This project is in active development - the API may change in future releases.

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

deep_solutions-0.1.1.tar.gz (72.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deep_solutions-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file deep_solutions-0.1.1.tar.gz.

File metadata

  • Download URL: deep_solutions-0.1.1.tar.gz
  • Upload date:
  • Size: 72.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for deep_solutions-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1061f245b232baaf2873df2516644b00e8f59199503342d71c444d8d3693b993
MD5 6457dd57f7d4763f5d9e42b9da3ae698
BLAKE2b-256 59c77c131b526ae53392bd1c43614fcd904767af59bd4c7863c09a6dd24de964

See more details on using hashes here.

File details

Details for the file deep_solutions-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: deep_solutions-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for deep_solutions-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4605d6fc5811cf1899dd58d519e12e366e7be8ade1ee8b68a0f5c149aaa8840d
MD5 d4b3256931bc4128fb04930b7fcd41ba
BLAKE2b-256 dd1df93a02d56413c7ed8c16cf3189319ddab8eda405c29205cdf5654f5355dd

See more details on using hashes here.

Supported by

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