pythonik-ext


Namepythonik-ext JSON
Version 2025.3b0 PyPI version JSON
download
home_pageNone
SummaryExtensions and enhancements for the pythonik client library
upload_time2025-03-31 23:35:06
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT
keywords iconik api pythonik extensions
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pythonik-ext

Extensions and enhancements for the
[pythonik](https://pypi.org/project/nsa-pythonik/) client library.

## Installation

```
pip install pythonik-ext
```

## Features

- Drop-in replacement for the standard pythonik client
- Enhanced logging (uses Python logging instead of print statements)
- Additional functionality:
  - File checksum utilities for finding files by MD5
  - Improved error handling
  - Better typing support

## Usage

### Basic Usage

```python
from pythonikext import ExtendedPythonikClient

# Create a client (same interface as the original)
client = ExtendedPythonikClient(app_id="your_app_id",
                                auth_token="your_auth_token", timeout=10)

# Use familiar methods
asset = client.assets().get(asset_id="1234567890abcdef")
```

### New Functionality

```python
from pythonikext import ExtendedPythonikClient

client = ExtendedPythonikClient(app_id="your_app_id",
                                auth_token="your_auth_token", timeout=10)

# Get files by checksum string
response = client.files().get_files_by_checksum(
    "d41d8cd98f00b204e9800998ecf8427e")

# Or use a file path - it calculates the checksum for you
response = client.files().get_files_by_checksum("path/to/your/file.txt")
```

### Using Just the Extended Specs

```python
from pythonik.client import PythonikClient
from pythonikext.specs.files import ExtendedFilesSpec

# Use the original client
client = PythonikClient(app_id="your_app_id", auth_token="your_auth_token")

# Create an extended files spec
extended_files = ExtendedFilesSpec(client.session,
                                   timeout=client.timeout,
                                   base_url=client.base_url)

# Use extended functionality
response = extended_files.get_files_by_checksum("path/to/your/file.txt")
```

## License

MIT

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pythonik-ext",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "iconik, api, pythonik, extensions",
    "author": null,
    "author_email": "Brian Summa <brian.f.summa@chesa.com>",
    "download_url": "https://files.pythonhosted.org/packages/b5/46/79cab7d25b624204d802b8534083eea748971bed6e25fbd12dc6bb303ebd/pythonik_ext-2025.3b0.tar.gz",
    "platform": null,
    "description": "# pythonik-ext\n\nExtensions and enhancements for the\n[pythonik](https://pypi.org/project/nsa-pythonik/) client library.\n\n## Installation\n\n```\npip install pythonik-ext\n```\n\n## Features\n\n- Drop-in replacement for the standard pythonik client\n- Enhanced logging (uses Python logging instead of print statements)\n- Additional functionality:\n  - File checksum utilities for finding files by MD5\n  - Improved error handling\n  - Better typing support\n\n## Usage\n\n### Basic Usage\n\n```python\nfrom pythonikext import ExtendedPythonikClient\n\n# Create a client (same interface as the original)\nclient = ExtendedPythonikClient(app_id=\"your_app_id\",\n                                auth_token=\"your_auth_token\", timeout=10)\n\n# Use familiar methods\nasset = client.assets().get(asset_id=\"1234567890abcdef\")\n```\n\n### New Functionality\n\n```python\nfrom pythonikext import ExtendedPythonikClient\n\nclient = ExtendedPythonikClient(app_id=\"your_app_id\",\n                                auth_token=\"your_auth_token\", timeout=10)\n\n# Get files by checksum string\nresponse = client.files().get_files_by_checksum(\n    \"d41d8cd98f00b204e9800998ecf8427e\")\n\n# Or use a file path - it calculates the checksum for you\nresponse = client.files().get_files_by_checksum(\"path/to/your/file.txt\")\n```\n\n### Using Just the Extended Specs\n\n```python\nfrom pythonik.client import PythonikClient\nfrom pythonikext.specs.files import ExtendedFilesSpec\n\n# Use the original client\nclient = PythonikClient(app_id=\"your_app_id\", auth_token=\"your_auth_token\")\n\n# Create an extended files spec\nextended_files = ExtendedFilesSpec(client.session,\n                                   timeout=client.timeout,\n                                   base_url=client.base_url)\n\n# Use extended functionality\nresponse = extended_files.get_files_by_checksum(\"path/to/your/file.txt\")\n```\n\n## License\n\nMIT\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Extensions and enhancements for the pythonik client library",
    "version": "2025.3b0",
    "project_urls": {
        "Homepage": "https://github.com/briansumma/pythonik-ext",
        "Issues": "https://github.com/briansumma/pythonik-ext/issues"
    },
    "split_keywords": [
        "iconik",
        " api",
        " pythonik",
        " extensions"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6dd87482fe2373c26572e7c0255f7151ab57c7e32df27a47d4ada5c995a9ec6b",
                "md5": "853337c51bb9a66c5adc7ec26906fef1",
                "sha256": "9ff840bfb62d1a1a322569e4849701ce976f9b5de644e2c5f9611e3ee80c2c81"
            },
            "downloads": -1,
            "filename": "pythonik_ext-2025.3b0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "853337c51bb9a66c5adc7ec26906fef1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 7879,
            "upload_time": "2025-03-31T23:35:05",
            "upload_time_iso_8601": "2025-03-31T23:35:05.292203Z",
            "url": "https://files.pythonhosted.org/packages/6d/d8/7482fe2373c26572e7c0255f7151ab57c7e32df27a47d4ada5c995a9ec6b/pythonik_ext-2025.3b0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b54679cab7d25b624204d802b8534083eea748971bed6e25fbd12dc6bb303ebd",
                "md5": "e3ee665144633a0ded1fd956e6591d2d",
                "sha256": "351a2a821e95995f817662d8867dc8789aad0c5f6f9862871358a1f3c3d8c43f"
            },
            "downloads": -1,
            "filename": "pythonik_ext-2025.3b0.tar.gz",
            "has_sig": false,
            "md5_digest": "e3ee665144633a0ded1fd956e6591d2d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 11069,
            "upload_time": "2025-03-31T23:35:06",
            "upload_time_iso_8601": "2025-03-31T23:35:06.352504Z",
            "url": "https://files.pythonhosted.org/packages/b5/46/79cab7d25b624204d802b8534083eea748971bed6e25fbd12dc6bb303ebd/pythonik_ext-2025.3b0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-31 23:35:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "briansumma",
    "github_project": "pythonik-ext",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pythonik-ext"
}
        
Elapsed time: 0.96020s