Metadata-Version: 2.4
Name: django-bsv-integration
Version: 0.1.0
Summary: Django integration for BSV blockchain using py-bsv SDK
Home-page: https://github.com/yourusername/django-bsv-integration
Author: Your Name
Author-email: your.email@example.com
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Framework :: Django :: 4.1
Classifier: Framework :: Django :: 4.2
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django>=3.2
Requires-Dist: bsv-sdk
Requires-Dist: whatsonchain>=0.0.3
Requires-Dist: yenpoint_1satordinals
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: requests>=2.25.0
Requires-Dist: Pillow>=8.0.0
Requires-Dist: python-magic>=0.4.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-django; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: isort; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Django BSV Integration

A Django package for Bitcoin SV (BSV) blockchain integration using the py-bsv SDK.

## Features

- BSV wallet management with Django models
- Transaction creation and broadcasting
- 1sat ordinal support
- Image processing for blockchain storage
- UTXO management
- Integration with WhatsOnChain and GorillaPool APIs

## Installation

```bash
pip install django-bsv-integration
```

## Quick Start

1. Add "bsv_integration" to your INSTALLED_APPS:

```python
INSTALLED_APPS = [
    ...
    'bsv_integration',
]
```

2. Run migrations:

```bash
python manage.py migrate bsv_integration
```

3. Create a BSV wallet:

```python
from bsv_integration.models import BSVWallet

# Create wallet
wallet = BSVWallet.objects.create(
    user=request.user,
    name="My BSV Wallet",
    # ... other fields
)

# Send transaction
result = await wallet.send_transaction(
    recipient_address="1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
    amount=1000,  # satoshis
    op_return_message="Hello BSV!"
)
```

## Requirements

- Django 3.2+
- Python 3.8+
- py-bsv SDK
- aiohttp for async operations

## License

MIT License
