Skip to main content

Open in Dev Containers

Snap SAAS Base

Snap Env (https://snapenv.com) Python base module.

Using

Python package: To add and install this package as a dependency of your project, run poetry add snap-saas-base.

Contributing

Prerequisites
1. Set up Git to use SSH
  1. Generate an SSH key and add the SSH key to your GitHub account.
  2. Configure SSH to automatically load your SSH keys:
    cat << EOF >> ~/.ssh/config
    Host *
      AddKeysToAgent yes
      IgnoreUnknown UseKeychain
      UseKeychain yes
    EOF
    
2. Install Docker
  1. Install Docker Desktop.
3. Install VS Code or PyCharm
  1. Install VS Code and VS Code's Dev Containers extension. Alternatively, install PyCharm.
  2. Optional: install a Nerd Font such as FiraCode Nerd Font and configure VS Code or configure PyCharm to use it.
4. Install OpenCommit
  1. Install OpenCommit. Open a new shell window and execute the following commands:
    npm install -g opencommit
    oco config set OCO_OPENAI_API_KEY=sk-N...
    oco config set OCO_MODEL=gpt-4
    oco config set OCO_EMOJI=true
    
5. Install gpt4docstrings (dont install until tool upgrade to use new openai API client)
  1. Install gpt4docstrings. In the directory of the project and with poetry activated, execute the following commands:
    poetry add --group dev gpt4docstrings
    
  2. Optional: Test the command:
    OPENAI_API_KEY=sk-N... gpt4docstrings -w src/api.py
    
    • Check src/snap_saas_base/api.py to see the generated docstring.
6. Install aider
  1. Install aider. In the directory of the project and with poetry activated, execute the following commands:
    poetry add --group dev aider-chat
    
  2. Optional: Test the command:
    OPENAI_API_KEY=sk-N... aider --no-auto-commits 
    
    • After aider is loaded, use /help to see avaiable commands and check [aider project(https://github.com/paul-gauthier/aider) to understand this tool.
7. Install cz-conventional-gitmoji
  1. Install cz-conventional-gitmoji. In the directory of the project and with poetry activated, execute the following commands:
    poetry add --group dev cz-conventional-gitmoji
    
  2. Optional: Test the command:
    cz commit
    
Development environments

The following development environments are supported:

  1. ⭐️ GitHub Codespaces: click on Code and select Create codespace to start a Dev Container with GitHub Codespaces.
  2. ⭐️ Dev Container (with container volume): click on Open in Dev Containers to clone this repository in a container volume and create a Dev Container with VS Code.
  3. Dev Container: clone this repository, open it with VS Code, and run Ctrl/⌘ + ⇧ + P → Dev Containers: Reopen in Container.
  4. PyCharm: clone this repository, open it with PyCharm, and configure Docker Compose as a remote interpreter with the dev service.
  5. Terminal: clone this repository, open it with your terminal, and run docker compose up --detach dev to start a Dev Container in the background, and then run docker compose exec dev zsh to open a shell prompt in the Dev Container.
Developing
  • This project follows the Conventional Commits standard to automate Semantic Versioning and Keep A Changelog with Commitizen.
  • Run poe from within the development environment to print a list of Poe the Poet tasks available to run on this project.
  • Run poetry add {package} from within the development environment to install a run time dependency and add it to pyproject.toml and poetry.lock. Add --group test or --group dev to install a CI or development dependency, respectively.
  • Run poetry update from within the development environment to upgrade all dependencies to the latest versions allowed by pyproject.toml.
  • Run cz --name cz_gitmoji commit so commit files using conventional commits with emojis.
  • Run cz --name cz_gitmoji bump --changelog to bump the package's version, update the CHANGELOG.md, and create a git tag.
  • Run git push --tags to push the new tag to github.

Metadata

Release files for snap-saas-base 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snap-saas-base 0.10.2
File Size Uploaded
snap_saas_base-0.10.2.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snap-saas-base 0.10.2
File Interpreter ABI Platform
snap_saas_base-0.10.2-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / snap_saas_base-0.10.2.tar.gz

Download URL snap_saas_base-0.10.2.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
03c7a7288f72e540ab6b8978dc93864b78226228ccde0fd12ea85331cc3452e1
BLAKE2b-256 checksum
How to use checksums
7b8823e6374e6c6742d7062c3f289ecf212e144f824f7ec96157e337105ebaaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1018-azure

Release files / snap_saas_base-0.10.2-py3-none-any.whl

Download URL snap_saas_base-0.10.2-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
095176b0118cbe18a6b724474b5716a272085856a582b45710eff70e48b51ca0
BLAKE2b-256 checksum
How to use checksums
a6375b38be25532684c2377e2b0ee9af5021519de51ba2a78b778870130fec6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1018-azure

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page