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,
         poetry_options={
         "repository": "https://github.com/MetaSearch-IO/KaitoModelPython.git",
         },
         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
              exclude: ^\.* # Most dot files managed by projen and are read only
            - 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.1.tar.gz (2.3 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.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kaito_model-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 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.1.tar.gz
Algorithm Hash digest
SHA256 fd6f592ff2320d382574d0fc594e980d6cb943ad667c486cba17912a0b0e05aa
MD5 277cb1c8b2641a909393e78632be518e
BLAKE2b-256 1168f54340159458e21b98db5f811cf3ed7e1bb5359b19d19d35051079fcbf3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kaito_model-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ee1dfc4c6588734f76df8654dc6b49342c87dadd17ae294999879117813e0bd
MD5 8167ba55c8b8981aea0d60591872ccbb
BLAKE2b-256 8be07f320db0fab891132e6c3510345aaefdeccd51a1073ec8872a9b55fea342

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