Skip to main content

Shared Python utilies from Degel Software Ltd.

Project description

degel-python-utils

Shared Python utilities from Degel Software Ltd.

Using degel-python-utils

Initial setup on a new machine

To get started with degel-python-utils on a new machine, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/degel-python-utils.git
    cd degel-python-utils
    
  2. Install dependencies:

    Make sure you have pipenv installed. If not, install it using pip:

    pip install pipenv
    

    Then, install the project dependencies:

    make install
    
  3. Install pre-commit hooks:

    Install the pre-commit hooks to ensure code quality:

    make hooks
    

Using degel-python-utils in other projects

To use degel-python-utils in other projects, you need to install it via PyPI:

  1. Install the library:

    Add degel-python-utils to your Pipfile or install it directly using pipenv:

    pipenv install degel-python-utils
    
  2. Import and use:

    You can now import and use the utility functions provided by degel-python-utils in your project:

    from degel_python_utils import some_function
    
    some_function()
    

Developing degel-python-utils

If you want to contribute to the development of degel-python-utils or make local modifications, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/degel-python-utils.git
    cd degel-python-utils
    
  2. Install dependencies:

    make install
    
  3. Install pre-commit hooks:

    Install the pre-commit hooks to ensure code quality:

    make hooks
    
  4. Run tests:

    Ensure all tests pass before making changes:

    make test
    
  5. Make your changes:

    Edit the code as needed. Ensure that your code follows the project's coding standards.

  6. Lint and test:

    Before committing your changes, run linting and tests:

    make lint
    make test
    
  7. Commit and push:

    Commit your changes and push to your fork or branch:

    git add .
    git commit -m "Describe your changes"
    git push origin your-branch
    

Distributing degel-python-utils

To distribute a new version of degel-python-utils, follow these steps:

  1. Update version:

    Update the version number in setup.cfg.

  2. Build the package:

    Use build to create the distribution package:

    make build
    
  3. Upload to PyPI:

    Upload the package to PyPI using twine:

    make publish
    
  4. Tag the release:

    Tag the new release in your git repository:

    git tag vX.Y.Z
    git push origin vX.Y.Z
    

By following these instructions, you can effectively use, develop, and distribute the degel-python-utils library. If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.

License and copyright

This project is licensed under the MIT License.

Copyright © 2024, Degel Software Ltd.

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

degel_python_utils-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

degel_python_utils-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: degel_python_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for degel_python_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d6a84fbfed7680e9b0ad50ab9f81dbea22df2dd7c0f093e7be2a7eb8458717e1
MD5 0372a9ca9f219d6a69ea8d960c15486a
BLAKE2b-256 06059d196bdcf343ed864d46ec8ebb331dac9a8ee9607c164d873a5acd281558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for degel_python_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 096444e8989eb7934a8267549f10c8f029a4226287c4e8dd509533cd07f13946
MD5 c2b1d94d9e08bac444f636687379c8b0
BLAKE2b-256 e77b16b59d9425b40b9e31ded5252e1860a862421d08ce7a0a2a3eed7920dfa2

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