inoopa_utils


Nameinoopa_utils JSON
Version 7.1.3 PyPI version JSON
download
home_pageNone
SummaryCollection of utils used at Inoopa.
upload_time2025-08-21 08:51:09
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Inoopa's helpers

This repo contains helper functions we use in all of our python projects.

## This is pushed publicly to Pypi, so NEVER commit any secret here

## How to use this package in your code

```bash
pip install inoopa_utils
```

```python
from inoopa_utils.mongodb_helpers import DbManagerMongo

db_manager = DbManagerMongo()
```

## Development Setup

This project uses [UV](https://github.com/astral-sh/uv) for dependency management.

```bash
# Install UV (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install dependencies
uv sync

# Install development dependencies
uv sync --dev

# Add a new dependency
uv add <package-name>

# Add a new development dependency
uv add --dev <package-name>
```

## How to publish package to Pypi

### Automatic Publishing (Recommended)

The package is automatically published to PyPI when you push changes to `pyproject.toml` on the `main` branch, **but only if the version has been bumped**.

1. Make your code changes
2. **Update the package version** in [pyproject.toml](./pyproject.toml) at the key `version`
3. Commit and push to `main`
4. GitHub Actions will automatically:
   - Verify the version was bumped
   - Build the package
   - Publish to PyPI
   - Create a GitHub release

**Required Setup:**

- Add your PyPI API token as a GitHub secret named `PYPI_API_TOKEN`

### Manual Publishing

If you need to publish manually:

```bash
# Export your PyPI token
export UV_PUBLISH_TOKEN="..."

# Build project
uv build

# Publish (requires PyPI token to be configured)
uv publish
```

Note: You'll need to configure your PyPI credentials. You can either:

- Set the `UV_PUBLISH_TOKEN` environment variable with your PyPI token
- Use `uv publish --username __token__ --password <your-token>`

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "inoopa_utils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Maxim Berge <maxim.berge@inoopa.com>",
    "download_url": "https://files.pythonhosted.org/packages/50/71/eea76ae52f8cbd406c5b3cdd1f648e1465b716076dd8d6bb1188da0867f7/inoopa_utils-7.1.3.tar.gz",
    "platform": null,
    "description": "# Inoopa's helpers\n\nThis repo contains helper functions we use in all of our python projects.\n\n## This is pushed publicly to Pypi, so NEVER commit any secret here\n\n## How to use this package in your code\n\n```bash\npip install inoopa_utils\n```\n\n```python\nfrom inoopa_utils.mongodb_helpers import DbManagerMongo\n\ndb_manager = DbManagerMongo()\n```\n\n## Development Setup\n\nThis project uses [UV](https://github.com/astral-sh/uv) for dependency management.\n\n```bash\n# Install UV (if not already installed)\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n\n# Install dependencies\nuv sync\n\n# Install development dependencies\nuv sync --dev\n\n# Add a new dependency\nuv add <package-name>\n\n# Add a new development dependency\nuv add --dev <package-name>\n```\n\n## How to publish package to Pypi\n\n### Automatic Publishing (Recommended)\n\nThe package is automatically published to PyPI when you push changes to `pyproject.toml` on the `main` branch, **but only if the version has been bumped**.\n\n1. Make your code changes\n2. **Update the package version** in [pyproject.toml](./pyproject.toml) at the key `version`\n3. Commit and push to `main`\n4. GitHub Actions will automatically:\n   - Verify the version was bumped\n   - Build the package\n   - Publish to PyPI\n   - Create a GitHub release\n\n**Required Setup:**\n\n- Add your PyPI API token as a GitHub secret named `PYPI_API_TOKEN`\n\n### Manual Publishing\n\nIf you need to publish manually:\n\n```bash\n# Export your PyPI token\nexport UV_PUBLISH_TOKEN=\"...\"\n\n# Build project\nuv build\n\n# Publish (requires PyPI token to be configured)\nuv publish\n```\n\nNote: You'll need to configure your PyPI credentials. You can either:\n\n- Set the `UV_PUBLISH_TOKEN` environment variable with your PyPI token\n- Use `uv publish --username __token__ --password <your-token>`\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Collection of utils used at Inoopa.",
    "version": "7.1.3",
    "project_urls": {
        "Repository": "https://bitbucket.org/inoopa/inoopa_utils/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "933b39759e82c2284be61393852b4693d7954fd268f96e980dfa816c925bba4b",
                "md5": "6ae042d88e477372646da3234e79da43",
                "sha256": "c003a2df3392b35c3c074949e41d82c8f84cb479735a2377d0d49d82e6347a2f"
            },
            "downloads": -1,
            "filename": "inoopa_utils-7.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6ae042d88e477372646da3234e79da43",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 36313,
            "upload_time": "2025-08-21T08:51:07",
            "upload_time_iso_8601": "2025-08-21T08:51:07.582338Z",
            "url": "https://files.pythonhosted.org/packages/93/3b/39759e82c2284be61393852b4693d7954fd268f96e980dfa816c925bba4b/inoopa_utils-7.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5071eea76ae52f8cbd406c5b3cdd1f648e1465b716076dd8d6bb1188da0867f7",
                "md5": "620dcc733c3ddb9061160f9cac4c186d",
                "sha256": "2d82034f4a197ce70313833b0516b0e06e39691664ff2d8e3350ad9cb2949d42"
            },
            "downloads": -1,
            "filename": "inoopa_utils-7.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "620dcc733c3ddb9061160f9cac4c186d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 29960,
            "upload_time": "2025-08-21T08:51:09",
            "upload_time_iso_8601": "2025-08-21T08:51:09.163943Z",
            "url": "https://files.pythonhosted.org/packages/50/71/eea76ae52f8cbd406c5b3cdd1f648e1465b716076dd8d6bb1188da0867f7/inoopa_utils-7.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-21 08:51:09",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "codeberg": false,
    "bitbucket_user": "inoopa",
    "bitbucket_project": "inoopa_utils",
    "lcname": "inoopa_utils"
}
        
Elapsed time: 0.92505s