Skip to main content

============== Python Client Library for Neuri

This is the official Python client library for Neuri. It allows you to easily integrate Neuri into your Python applications.

++++++++++++ Installation ++++++++++++

To get started with the Neuri Python Client Library, you need to first install the library using pip:

.. code-block:: python

pip install neuri

+++++ Import and initialize the library +++++

First you have to import the module and set up the client with your API key and service details, as shown below.

.. code-block:: python

import neuri

config = {
    "service": "translate",
    "lang": "en",
    "temperature": 0.5,
    "api_key": "YOUR_API_KEY_HERE",
    "translate_to": "es" # optional
}

client = neuri.initialize_client(config)

+++++ Import and initialize the library +++++

The Neuri Client Library currently supports three services: audio_file, audio_url, and text. Each service has its own set of parameters and returns a JSON containing the results of the processing.

  • neuri.audio_file(): Audio File.
  • neuri.audio_url(): Audio URL.
  • neuri.text(): Text

+++++ Audio File +++++

Process audio files stored locally on your system using the audio_file service.

.. code-block:: python

result = client.audio_file(file_path=[
    os.path.join(os.path.dirname(__file__), "examples/girl_phone_call.wav"),
    os.path.join(os.path.dirname(__file__), "examples/noise_man_question.wav")
])

Replace the file paths in the file_path list with the actual paths to your audio files. The audio_file service will process the audio files and return the results in a JSON format.

+++++ Audio URL +++++

Process audio files from a remote URL using the audio_url service.

.. code-block:: python

result = client.audio_url(url="https://neuri-storage.s3.amazonaws.com/public_data/girl_phone_call.wav?AWSAccessKeyId=AKIAQFECGXRQOTIJ2FUV&Signature=GjrMz1NkMtQgFd0etJUCiQg4WNI%3D&Expires=1995267608")

Replace the file paths in the url list with the actual paths to your audio files. The audio_url service will process the audio files and return the results in a JSON format.

+++++ Text +++++

Process text using the text service.

.. code-block:: python

result = client.text(text="Hello, how are you?")

Replace the text in the text parameter with the actual text you want to process. The text service will process the text and return the results in a JSON format.

Metadata

Release files for neuri 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuri 1.0.1
File Size Uploaded
neuri-1.0.1.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuri 1.0.1
File Interpreter ABI Platform
neuri-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / neuri-1.0.1.tar.gz

Download URL neuri-1.0.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
05d0e0807c3629c137c94889bc5e5a57471792a7cd20c4a300c61e4cf8182ae8
BLAKE2b-256 checksum
How to use checksums
fcd2bdd1a998972b9b3adcaebde881968b2cc4257f692290be371b9adb461f03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release files / neuri-1.0.1-py3-none-any.whl

Download URL neuri-1.0.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c7839bca69729f9a03e4ed8063641ff49237c5230f2fce3d967ff1b7f9535de
BLAKE2b-256 checksum
How to use checksums
0d6dcf48223f5a035cf1ba6f1d8760ba71cccbf46c9afbd9948b705ef5050f04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page