Skip to main content

Neuracore Client Library

Project description

Neuracore Python Client

Neuracore is a powerful robotics and machine learning client library for seamless robot data collection, model deployment, and interaction.

Features

  • Easy robot initialization and connection
  • Streaming data logging
  • Model endpoint management
  • Local and remote model support
  • Flexible dataset creation

Installation

pip install neuracore

Quick Start

Ensure you have an account at neuracore.app

Authentication

import neuracore as nc

# This will save your API key locally
nc.login()

Robot Connection

# Connect to a robot
nc.connect_robot(
    robot_name="MyRobot", 
    urdf_path="/path/to/robot.urdf"
)

You can also upload MuJoCo MJCF rather than URDF. For that, ensure you install extra dependencies: pip install neuracore[mjcf].

nc.connect_robot(
    robot_name="MyRobot", 
    mjcf_path="/path/to/robot.xml"
)

Data Logging

# Log joint positions
nc.log_joint_positions({
    'joint1': 0.5, 
    'joint2': -0.3
})

# Log RGB camera image
nc.log_rgb("top_camera", image_array)

Documentation

Development

To set up for development:

git clone https://github.com/neuraco/neuracore
cd neuracore
pip install -e .[dev]

Environment Variables

A few environment variables effect how this library operates, they are generally prefixed with NEURACORE_ and are case insensitive

Variable Function Valid Values Default Value
NEURACORE_REMOTE_RECORDING_TRIGGER_ENABLED Allows you to disable other machines starting a recording when logging. this does not affect the live data true/false true
NEURACORE_LIVE_DATA_ENABLED Allows you to disable the streaming of data for live visualizations from this node. This does not affect recording. true/false true
NEURACORE_API_URL The base url used to contact the neuracore platform. A url e.g. https://api.neuracore.app/api https://api.neuracore.app/api

Testing

export NEURACORE_API_URL=http://localhost:8000/api
pytest tests/

Contributing

Contributions are welcome!

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

neuracore-1.5.1.tar.gz (65.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuracore-1.5.1-py3-none-any.whl (91.3 kB view details)

Uploaded Python 3

File details

Details for the file neuracore-1.5.1.tar.gz.

File metadata

  • Download URL: neuracore-1.5.1.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for neuracore-1.5.1.tar.gz
Algorithm Hash digest
SHA256 d9c8ee0ee8fdcbd75b55c5f8aa153ca9dd49b2cfa2c76d28dbda4f601057c37d
MD5 12debcf91ca84a61a9f5f76ed6e4053c
BLAKE2b-256 c9d630665dfbabe67340f9214639152d56b97b2c957f566b7f315dd76f96929d

See more details on using hashes here.

File details

Details for the file neuracore-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: neuracore-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 91.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for neuracore-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf1357de1848fd9d0b7d47f14beff9f8150238fee46db1a6ffeca745bac5414
MD5 bdb91c65b5a22c8dc04e1583cb75f3b7
BLAKE2b-256 571f87dce1f1ff6aa83b085b1087d3ac8872e899f0380c9a562b5b5bc8f90cb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page