Metadata-Version: 2.4
Name: injective-core
Version: 1.17.2
Summary: Injective Core - Injective blockchain node binary (injectived)
Project-URL: Homepage, https://github.com/InjectiveFoundation/injective-core
Project-URL: Repository, https://github.com/InjectiveFoundation/injective-core
Project-URL: Documentation, https://docs.injective.network
Project-URL: Bug Tracker, https://github.com/InjectiveFoundation/injective-core/issues
Author-email: Injective Labs <maxim@injectivelabs.org>
License-Expression: BUSL-1.1
Keywords: blockchain,cosmos,defi,injective,injectived,node,validator
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.9
Requires-Dist: zstandard>=0.22.0
Description-Content-Type: text/markdown

# Injective Core

Python package wrapper for the Injective blockchain node binary (`injectived`).

## Installation

```bash
pip install injective-core
```

Or use with uvx (no installation required):

```bash
uvx --from injective-core injectived --help
```

## Supported Platforms

- macOS ARM64 (Apple Silicon)
- Linux ARM64
- Linux x64

## Using injectived

After installation, the `injectived` and `injective-core` commands are available:

```bash
injectived --help
injective-core --help
injectived init
injectived start
```

### Python API

You can also use the package programmatically:

```python
from injective_core import get_binary_path, run_binary

# Get the path to the binary
binary_path = get_binary_path()
print(f"Binary located at: {binary_path}")

# Run the binary with arguments
run_binary(["--help"])
```

Note: the import path remains `injective_core` even though the package name is `injective-core`.

## How It Works

This package bundles platform-specific binaries as wheel distributions. When you install from PyPI, pip will download the correct wheel for your platform. Each wheel contains the appropriate `injectived` binary for the target platform.

## Building from Source

To build platform-specific wheels:

```bash
# Set the target platform
export INJECTIVED_PLATFORM=manylinux_2_17_x86_64  # or manylinux_2_17_aarch64, macosx_11_0_arm64, macosx_11_0_x86_64

# Build the wheel
pip install build
python -m build --wheel
```

## License

BUSL-1.1
