A Python library for interacting with Domo APIs
Project description
Domolibrary
A Python library for interacting with Domo APIs.
Installation
pip install domolibrary
Usage
from domolibrary import DomoUser
# Your code here
Project Structure
src/ # Main package source code
├── classes/ # Domain model classes
├── client/ # API client utilities
├── integrations/ # Integration modules
├── routes/ # API route implementations
├── utils/ # Utility functions
├── __init__.py # Package initialization
└── _modidx.py # Module index
scripts/ # Development scripts
tests/ # Test files
.vscode/ # VS Code configuration
.github/workflows/ # CI/CD workflows
Development
This project uses uv for dependency management and development.
Setup Development Environment
# Initial setup (run once)
.\scripts\setup-dev.ps1
This will:
- Install all dependencies (including dev dependencies)
- Set up pre-commit hooks for automatic code quality checks
Development Scripts
All development scripts are located in the scripts/ folder. See scripts/README.md for detailed documentation.
Quick reference:
.\scripts\setup-dev.ps1- Setup development environment.\scripts\format-code.ps1- Manual code formatting (fallback).\scripts\lint.ps1- Run linting and type checking.\scripts\test.ps1- Run tests with coverage.\scripts\build.ps1- Build the package.\scripts\publish.ps1- Publish to PyPI (with validation)
Manual Development Commands
If you prefer to run commands manually:
# Install dependencies
uv sync --dev
# Run linting
uv run ruff check src --fix
uv run black src
uv run isort src
uv run pylint src
uv run mypy src
# Run tests
uv run pytest tests/ --cov=src
# Build package
uv build
# Publish (after all checks pass)
uv publish
Pre-commit Hooks
This project uses pre-commit hooks to automatically check code quality before commits:
- Ruff - Fast Python linter
- Black - Code formatter
- isort - Import sorter
Hooks are installed automatically by setup-dev.ps1. If they cause issues, you can use .\scripts\format-code.ps1 as a fallback.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file domolibrary2-2.1.0.tar.gz.
File metadata
- Download URL: domolibrary2-2.1.0.tar.gz
- Upload date:
- Size: 321.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0092d5ed50fe6074606dbc032c1aef268b730fe6906eb6b5f4896f452fe77e66
|
|
| MD5 |
acd9ab0ac933497435a50e94b3d72e5a
|
|
| BLAKE2b-256 |
f5b0feca2cfeeec0eebd1b73dd169fadb746dba2ec5e3124ff008df520f1dffa
|
File details
Details for the file domolibrary2-2.1.0-py3-none-any.whl.
File metadata
- Download URL: domolibrary2-2.1.0-py3-none-any.whl
- Upload date:
- Size: 442.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f23fa72163008106154dfb0a6061d2f971431d2690cc7ebc9167c2871035455
|
|
| MD5 |
491ed8618e213d63e2639c9ddbc97b28
|
|
| BLAKE2b-256 |
daedea8ba9ee092eb80a3c25a88c4f940092ba39402199f7dc95dca3ea9686f4
|