strideutils


Namestrideutils JSON
Version 0.3.11 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-05-15 20:24:20
maintainerNone
docs_urlNone
authorYour Name
requires_python>=3.11
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Description
Strideutils contains common patterns for cosmos api requests, monitoring, and other integrations for gsheets, slack, and twilio.

## Setup

In a virtual environment of your choice install strideutils.

```
pip install strideutils
```
with poetry
```
poetry add strideutils
```

This package is frequently updated, so keep that in mind while developing.

## Configuration
Strideutils requires three different environment variables that can be added to `~/.zshrc` or `~/.bashrc`

```
export STRIDEUTILS_CONFIG_PATH=
export STRIDEUTILS_SECRETS_PATH=
export ENV=DEV
```

Examples of these files are included under strideutils/config_examples.
Stride Labs employees can find config.yaml in launchpad and strideutils_secrets.yamls in lastpass.

Any configuration or secrets that aren't consumed don't need to be set. However if one is accessed but unset, an error will be thrown for easier debugging.

Once strideutils is installed and configured, each module you need should be imported individually. This isolates the different secrets that are expected and consumed.

Some common imports:
```
from strideutils.stride_config import config
# config.get_chain(name='osmosis')
from strideutils import stride_requests
# stride_requests.request('https://google.com')
from strideutils.stride_alerts import raise_alert
```

## Developing Strideutils
To access the strideutils repo locally rather than using the pip version (for actively making changes to strideutils and a dependency), add the path to strideutils to the beginning of PYTHONPATH

```
import sys
sys.path = ['/path/to/strideutils/'] + sys.path
```

Confirm the location of where it's being imported from by printing the module.
After making changes to strideutils, reload it before testing your application.

```
from importlib import reload
reload(strideutils)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "strideutils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/86/b2/43c812e3104dd2a935a6416881ac26fad0ae5efc52941f2e4c7901f820cf/strideutils-0.3.11.tar.gz",
    "platform": null,
    "description": "## Description\nStrideutils contains common patterns for cosmos api requests, monitoring, and other integrations for gsheets, slack, and twilio.\n\n## Setup\n\nIn a virtual environment of your choice install strideutils.\n\n```\npip install strideutils\n```\nwith poetry\n```\npoetry add strideutils\n```\n\nThis package is frequently updated, so keep that in mind while developing.\n\n## Configuration\nStrideutils requires three different environment variables that can be added to `~/.zshrc` or `~/.bashrc`\n\n```\nexport STRIDEUTILS_CONFIG_PATH=\nexport STRIDEUTILS_SECRETS_PATH=\nexport ENV=DEV\n```\n\nExamples of these files are included under strideutils/config_examples.\nStride Labs employees can find config.yaml in launchpad and strideutils_secrets.yamls in lastpass.\n\nAny configuration or secrets that aren't consumed don't need to be set. However if one is accessed but unset, an error will be thrown for easier debugging.\n\nOnce strideutils is installed and configured, each module you need should be imported individually. This isolates the different secrets that are expected and consumed.\n\nSome common imports:\n```\nfrom strideutils.stride_config import config\n# config.get_chain(name='osmosis')\nfrom strideutils import stride_requests\n# stride_requests.request('https://google.com')\nfrom strideutils.stride_alerts import raise_alert\n```\n\n## Developing Strideutils\nTo access the strideutils repo locally rather than using the pip version (for actively making changes to strideutils and a dependency), add the path to strideutils to the beginning of PYTHONPATH\n\n```\nimport sys\nsys.path = ['/path/to/strideutils/'] + sys.path\n```\n\nConfirm the location of where it's being imported from by printing the module.\nAfter making changes to strideutils, reload it before testing your application.\n\n```\nfrom importlib import reload\nreload(strideutils)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.3.11",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "03ccc1bad12e672569b509606dc55bf9ef12ac8368c002424b3590cc9b22c3ae",
                "md5": "7c761551079f61fc71a6f40b37654d46",
                "sha256": "ff93c3ef32f154af912427866f79fb78ff4acd1f5154458f499f77e6259d8faf"
            },
            "downloads": -1,
            "filename": "strideutils-0.3.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7c761551079f61fc71a6f40b37654d46",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 32717,
            "upload_time": "2024-05-15T20:24:18",
            "upload_time_iso_8601": "2024-05-15T20:24:18.167693Z",
            "url": "https://files.pythonhosted.org/packages/03/cc/c1bad12e672569b509606dc55bf9ef12ac8368c002424b3590cc9b22c3ae/strideutils-0.3.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86b243c812e3104dd2a935a6416881ac26fad0ae5efc52941f2e4c7901f820cf",
                "md5": "940d88329fe7247b3fb767821eea7ad8",
                "sha256": "7f8a79873310765912aaa42befb54798423614b8e747d3e054c7b597d9372781"
            },
            "downloads": -1,
            "filename": "strideutils-0.3.11.tar.gz",
            "has_sig": false,
            "md5_digest": "940d88329fe7247b3fb767821eea7ad8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 32634,
            "upload_time": "2024-05-15T20:24:20",
            "upload_time_iso_8601": "2024-05-15T20:24:20.029192Z",
            "url": "https://files.pythonhosted.org/packages/86/b2/43c812e3104dd2a935a6416881ac26fad0ae5efc52941f2e4c7901f820cf/strideutils-0.3.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-15 20:24:20",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "strideutils"
}
        
Elapsed time: 0.26550s