semvec/pypi-packages huggingface dataset:
langchain-standard-tests 0.1.1
Standard tests for LangChain implementations
License: MIT
Requires Python: <4.0,>=3.8.1

# gigachain-standard-tests

This is an INTERNAL library for the LangChain project. It contains the base classes for
a standard set of tests.

## Installation

This package will NOT be regularly published to pypi. It is intended to be installed
directly from github at test time.

Pip:
    
    ```bash
    pip install git+https://github.com/langchain-ai/langchain.git#subdirectory=libs/standard-tests
    ```

Poetry:
    
    ```bash
    poetry add git+https://github.com/langchain-ai/langchain.git#subdirectory=libs/standard-tests
    ```

## Usage

To add standard tests to an integration package's e.g. ChatModel, you need to create

1. A unit test class that inherits from ChatModelUnitTests
2. An integration test class that inherits from ChatModelIntegrationTests

`tests/unit_tests/test_standard.py`:
    
```python
"""Standard LangChain interface tests"""

from typing import Type

import pytest
from langchain_core.language_models import BaseChatModel
from langchain_standard_tests.unit_tests import ChatModelUnitTests

from langchain_parrot_chain import ChatParrotChain


class TestParrotChainStandard(ChatModelUnitTests):
    @pytest.fixture
    def chat_model_class(self) -> Type[BaseChatModel]:
        return ChatParrotChain
```

`tests/integration_tests/test_standard.py`:
    
```python
"""Standard LangChain interface tests"""

from typing import Type

import pytest
from langchain_core.language_models import BaseChatModel
from langchain_standard_tests.integration_tests import ChatModelIntegrationTests

from langchain_parrot_chain import ChatParrotChain


class TestParrotChainStandard(ChatModelIntegrationTests):
    @pytest.fixture
    def chat_model_class(self) -> Type[BaseChatModel]:
        return ChatParrotChain
```

## Reference

The following fixtures are configurable in the test classes. Anything not marked
as required is optional.

- `chat_model_class` (required): The class of the chat model to be tested
- `chat_model_params`: The keyword arguments to pass to the chat model constructor
- `chat_model_has_tool_calling`: Whether the chat model can call tools. By default, this is set to `hasattr(chat_model_class, 'bind_tools)`
- `chat_model_has_structured_output`: Whether the chat model can structured output. By default, this is set to `hasattr(chat_model_class, 'with_structured_output')`
ochrepy 1.0.1
A light weight Python library for the Ochre Web API
License: MIT
Requires Python: >3.8

# **Ochrepy**

##### Ochrepy is a Python library. Its primary purpose is to interface with the Ochre API from Python. This can act as a very helpful package for ETL/ELT for Python developers working for music (and music-related) companies.

## Table of Contents

- [Features](#features)
- [Installation](#installation)
- [Quick Start](#quick-start)
  - [Example with client authentication](#example-with-client-authentication)
- [Reporting Issues](#reporting-issues)
- [Contributing](#contributing)

## Features

Ochrepy supports all features of the web API available at the [Ochre API Documentation](https://ochreapi.docs.apiary.io).

## Installation

```bash
pip install ochrepy
```

alternatively, for Windows users 

```bash
py -m pip install ochrepy
```

or upgrade

```bash
pip install ochrepy --upgrade
```

## Quick Start

Comprehensive documentation will be provided soon, explaining all available methods and abilities of this package. For the meantime, examples can be found in the examples directory.

To use this package, you will need a client ID and a client secret, which you can obtain through your account manager at Ochre.

### Example with client authentication

#### .env
```
OCHRE_CLIENT_ID=
OCHRE_CLIENT_SECRET=
OCHRE_CLIENT_USERNAME=
```

#### code
```python
import ochrepy
from ochrepy.auth import OchreClientCredentials

op = ochrepy.Ochre(client_credentials_manager=OchreClientCredentials())

results = op.music_tracks.list()
for track in response['results']:
            pprint(track['title'] + ' - ' + track['artist']['name'])
```
Expected result will be the list of tracks found in your account.
```
'Track 1 - Artist 1'
'Track 2 - Artist 2'
'Track 3 - Artist 3'
'Track 4 - Artist 4'
'Track 5 - Artist 5'
'Track 6 - Artist 6'
'Track 7 - Artist 7'
'Track 8 - Artist 8'
'Track 9 - Artist 9'
'Track 10 - Artist 10'
```


## Reporting Issues

If you have suggestions, bugs or other issues specific to this library,
file them [here](https://github.com/Jopgood/ochrepy/issues). Or just send a pull request.

## Contributing

If you are a developer with Python experience, and you would like to contribute to Ochrepy, please be sure to follow the guidelines listed on documentation page.
nexussdk5 5.1.0
A Python SDK for the Nexus Question Generation API
License: MIT
Requires Python: >=3.6

# Example usage in README.md:


```
from nexussdk5 import HackathonNexusAPI

api = HackathonNexusAPI(api_key="your_gemini_api_key_here")

# Generate questions
files = ["path/to/file1.pdf", "path/to/file2.jpg"]
result = api.generate_questions(files, num_questions=5, difficulty="medium")
print(result)
```


# FOR Validate answer
```
validation = api.check_answer(
    question="What is the capital of France?", #Need to pass the generated questions here 
    correct_answer="Paris", #Correct answer here
    user_answer="London" #Pass user answer here too (The API will take care of the rest)
)
print(validation)
```


## Install with:
```
pip install nexussdk5
```
nexussdk4 4.1.0
A Python SDK for the Nexus Question Generation API
License: MIT
Requires Python: >=3.6

# Example usage in README.md:
"""

```
from nexus_sdk import HackathonNexusAPI

api = HackathonNexusAPI(api_key="your_gemini_api_key_here")

# Generate questions
files = ["path/to/file1.pdf", "path/to/file2.jpg"]
result = api.generate_questions(files, num_questions=5, difficulty="medium")
print(result)

# Validate answer
validation = api.check_answer(
    question="What is the capital of France?",
    correct_answer="Paris",
    user_answer="London"
)
print(validation)
```

This allows for fine-grained error handling in your applications.
"""

## Install with:
```
pip install nexussdk4
```