Skip to content

Bump version & moved to uv #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# RushDB Configuration
RUSHDB_TOKEN=your_api_token_here
RUSHDB_API_KEY=your_api_token_here
RUSHDB_URL=http://localhost:3000
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Python SDK CI/CD

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
release:
types: [published]

jobs:
lint:
test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -23,28 +23,30 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true
version: "latest"

- name: Install dependencies
run: |
poetry install --no-interaction --no-root
uv sync --dev

- name: Run linters
run: |
poetry run black . --check
poetry run isort . --check
poetry run ruff check .
poetry run mypy src/rushdb
uv run black . --check
uv run isort . --check
uv run ruff check .
uv run mypy src/rushdb

- name: Run tests
run: |
uv run pytest

publish:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: lint
needs: test

steps:
- uses: actions/checkout@v4
Expand All @@ -54,20 +56,18 @@ jobs:
with:
python-version: "3.11"

- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true
version: "latest"

- name: Install dependencies
run: |
poetry install --no-interaction --no-root
uv sync --dev

- name: Build and publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry build
poetry publish
uv build
uv publish
56 changes: 55 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Dependencies
node_modules
dist
*.log
Expand All @@ -15,4 +16,57 @@ coverage
.rollup.cache
cjs
esm
packages/javascript-sdk/types
packages/javascript-sdk/types

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Virtual environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Testing
.coverage
.pytest_cache/
.tox/
htmlcov/
.nox/

# uv
.uv/

# IDE
.vscode/
.idea/
*.swp
*.swo

# OS
.DS_Store
Thumbs.db
57 changes: 41 additions & 16 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,28 @@ Thank you for your interest in contributing to RushDB! To ensure a smooth contri
When reporting an issue, include the following information:

1. **Minimum Reproducible Data Set**
- Provide a small JSON or CSV dataset if the issue is related to the core, dashboard, or SDK.
- Ensure the dataset highlights the problem clearly.

- Provide a small JSON or CSV dataset if the issue is related to the core, dashboard, or SDK.
- Ensure the dataset highlights the problem clearly.

2. **RushDB Version**
- Specify the version of RushDB you are using:
- **Cloud**: Mention if you are using the latest cloud version.
- **Self-hosted**: Provide the tag from Docker Hub or the SDK version.

- Specify the version of RushDB you are using:
- **Cloud**: Mention if you are using the latest cloud version.
- **Self-hosted**: Provide the tag from Docker Hub or the SDK version.

3. **Steps to Reproduce**
- Give a detailed explanation of how to reproduce the issue.
- Include any configurations, commands, or environment settings.

- Give a detailed explanation of how to reproduce the issue.
- Include any configurations, commands, or environment settings.

4. **Query Examples**
- If applicable, include specific queries that trigger the error.

- If applicable, include specific queries that trigger the error.

5. **Minimum Repository (if SDK-related)**
- For issues related to the SDK, a minimal GitHub repository demonstrating the bug may be required.

- For issues related to the SDK, a minimal GitHub repository demonstrating the bug may be required.

## Submitting Changes

Expand All @@ -42,21 +47,41 @@ For urgent issues or further assistance, you can reach out directly:

We appreciate your contributions and look forward to your feedback!

---
## Poetry commands
---

## Development Commands

```bash
# Install dependencies
uv sync --dev
```
poetry run isort . --check

```bash
# Check import sorting
uv run isort . --check
```

```bash
# Type checking
uv run mypy src/rushdb
```
poetry run mypy src/rushdb

```bash
# Code formatting
uv run black .
```

```bash
# Linting
uv run ruff check .
```
poetry run black .

```bash
# Run tests
uv run pytest
```

```bash
# Run tests with coverage
uv run pytest --cov
```
poetry run ruff check .
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pip install rushdb
from rushdb import RushDB

# Initialize the client
db = RushDB("YOUR_API_TOKEN")
db = RushDB("RUSHDB_API_KEY")

# Create a record
user = db.records.create(
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy