Skip to main content

Centralized core functionality for Terakeet SD, DS, DE, etc.

Project description

tk-core

PyPI Latest Release Ruff

Centralized core functionality for Terakeet SD, DS, DE, etc.

Installation Steps

Installation of the tk-core package requires a github personal access token (PAT) and the selectin of which branch you would like to install.

Github Personal Access Token (PAT)

This is the authentication method used to install the tk-core library. To create a github PAT please follow the steps below. The steps are listed in the github doucmentation.

  1. Log into GitHub
  2. Click on your profile picture, then click “Settings”
  3. Scroll to the bottom of the settings and select “<> Developer Settings”
  4. Select “Personal Access Tokens” to drop down the menu
  5. Select “Tokens” (classic)
  6. Select “Generate new token” then “Generate new token (classic)”
  7. Fill out the Note, Expiration, and Scope. a. The only permissions needed are “Repo”
  8. Scroll to the bottom, select “Generate Token”
  9. Copy the token once generated
  10. Paste into your code editor environment variable as “GITHUB_PAT” a. GITHUB_PAT=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

pip install

Once you have the access token in your .env file of your environment you can pip install the library. Because of the access token, you should not need to put in a password.

pip install git+https://github.com/terakeet/tk-core.git@<branch>

# Example
pip install git+https://github.com/terakeet/tk-core.git@staging

APIs

Current

  • common
    • anything you find yourself using frequently could be added here
  • serp_api
    • anything related to SERPAPI
    • there is a base class for all Google endpoints: serp_api.base.py:SERPAPI
  • snowflake
    • anything related to snowflake
  • core
    • functionality that is core to the other sub-modules in the package
  • async module
    • helper functions and async functionality that is core to the other sub-modules in the package

Future

  • google
  • open_ai
  • semrush

Examples

Each sub-packages should have their own directory inside the examples directory. These will be built out over time to help (along with the documentation) understand functionality and common use cases for the tk-core package.

Project Structure

tk-core
|
├── src
│   └── tk_core
│       ├── common
│       │   ├── de_service.py
│       │   ├── dictionary.py
│       │   ├── files.py
│       │   ├── hasher.py
│       │   └── s3.py
|       |   |__ timeout.py
|       |
│       ├── core
│       │   └── models.py
|       |
│       ├── google (future)
│       │   ├── gsc.py
│       │   ├── ga.py
│       │   ├── sheets.py
│       │   ├── calendar.py
│       │   └── gmail.py
|       |
│       ├── open_ai (future)
|       |
│       ├── semrush (future)
|       |
│       ├── serp_api
│       │   ├── README.md
│       │   ├── base.py
│       │   ├── batch_serp.py
│       │   ├── format_for_snowflake.py
│       │   ├── models.py
│       │   ├── serp.py
│       │   ├── trend.py
│       │   └── util.py
|       |
│       └── snowflake
│       │   ├── error_wrapper.py
│       │   ├── snowkeet_new.py
│           └── snowkeet.py
└── test
    ├── common
    ├── core
    └── serpapi
|
├── README.md
├── .coveragerc
├── .pre-commit-config.yaml
├── pyproject.toml
├── requirements.txt
├── requirements-dev.txt

Test PYPI

In case you need to development version, it can be found here. TEST PyPI Latest Release

Questions, Concerns, Bugs

Clone the repo, create a PR and give it a shot your self. Make sure to write some tests--or update the existing ones--with any changing functionality. Feel free to reach out to the engineering team for help.

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

tk_core-1.1.9.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

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

tk_core-1.1.9-py3-none-any.whl (63.1 kB view details)

Uploaded Python 3

File details

Details for the file tk_core-1.1.9.tar.gz.

File metadata

  • Download URL: tk_core-1.1.9.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tk_core-1.1.9.tar.gz
Algorithm Hash digest
SHA256 8e0950a54540e5b52d2bec8c62d8e144fc1c52b73f31382b293b84d9125bd0bb
MD5 50d58680baa242aaf93e291145790287
BLAKE2b-256 c0141ed9418ce4fe8367a632c0fb4438bbae7bb476eee65503e309f548e720e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tk_core-1.1.9.tar.gz:

Publisher: publish.yaml on terakeet/tk-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tk_core-1.1.9-py3-none-any.whl.

File metadata

  • Download URL: tk_core-1.1.9-py3-none-any.whl
  • Upload date:
  • Size: 63.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tk_core-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9daae2b4a11291f23dc6c79a2f7a2e34c7376fe462508932881d4934b1929a63
MD5 7cc3e4d40524b1ea8c9b80f90f372358
BLAKE2b-256 ef836fd4f62365c9ebb6f700bc8a75e552390b9aa4c2ce0076b3497e00c51d21

See more details on using hashes here.

Provenance

The following attestation bundles were made for tk_core-1.1.9-py3-none-any.whl:

Publisher: publish.yaml on terakeet/tk-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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