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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuri-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

neuri-1.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file neuri-1.0.1.tar.gz.

File metadata

  • Download URL: neuri-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for neuri-1.0.1.tar.gz
Algorithm Hash digest
SHA256 05d0e0807c3629c137c94889bc5e5a57471792a7cd20c4a300c61e4cf8182ae8
MD5 b9f555a4284b3d9f3faf6a4fcc788a8c
BLAKE2b-256 fcd2bdd1a998972b9b3adcaebde881968b2cc4257f692290be371b9adb461f03

See more details on using hashes here.

File details

Details for the file neuri-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: neuri-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for neuri-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c7839bca69729f9a03e4ed8063641ff49237c5230f2fce3d967ff1b7f9535de
MD5 57760f5660718d6561dcafb48bf33030
BLAKE2b-256 0d6dcf48223f5a035cf1ba6f1d8760ba71cccbf46c9afbd9948b705ef5050f04

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

Supported by

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