Skip to main content

No project description provided

Project description

How to create a python library with projen

  1. run pj new python --name=kaito_model

  2. configure .projenrc.py by adding below

         license=None,
         project_type=ProjectType.LIB,
         pip=False,
         venv=False,
         setuptools=False,
         poetry=True,
         deps=[
             "python@^3.9",
         ],
    

    Note that python dependency is required by poetry and the version should be at least 3.7

  3. run pj build to install dependencies and generate artifacts

Bonus

  1. How to enforce pre commit actions (for any language)

    1. install pre-commit and add pre-commit to deps list.

    2. create a pre-commit configuration file .pre-commit-config.yaml similar to below

      # See https://pre-commit.com for more information
      # See https://pre-commit.com/hooks.html for more hooks
      repos:
        - repo: https://github.com/pre-commit/pre-commit-hooks
          rev: v3.2.0
          hooks:
            - id: trailing-whitespace
            - id: end-of-file-fixer
            - id: check-yaml
            - id: check-added-large-files
      
    3. run pre-commit install

    4. (optional) run pre-commit autoupdate to update hooks to the latest version

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

kaito_model-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

kaito_model-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file kaito_model-0.1.0.tar.gz.

File metadata

  • Download URL: kaito_model-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.14 Darwin/21.6.0

File hashes

Hashes for kaito_model-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77a12db6b885f8c23991df9f415e60b297ea27ad76ff61f1ee6f0abe3f5089f2
MD5 e036921364ccdd8c7a1647819d14ccbd
BLAKE2b-256 594a0c7ecfc004f1d9e07032aca4c734509287bcbfa69dc0028bfba7214415f5

See more details on using hashes here.

File details

Details for the file kaito_model-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kaito_model-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.9.14 Darwin/21.6.0

File hashes

Hashes for kaito_model-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 783abccf1b3b3ab1b689968ede43f81a7be8a40bad80c943e822efb3f31f7a54
MD5 8583c02bda96a98253d84f03e6d41194
BLAKE2b-256 31a1f970f97b4895259e000a29e4d3c13a71b2f67f7c43fcbf19d6638b235f49

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