semvec/pypi-packages huggingface dataset:
upload-to-sharepoint 0.1.1
A library to upload files to SharePoint.
Requires Python: >=3.6

# Upload to SharePoint

A Python library to upload files to SharePoint.

## Installation

You can install this package using pip:

```bash
pip install upload_to_sharepoint
```

## Usage

To upload a file to SharePoint, you can use the `upload_file_to_sharepoint` function. Here's how to do it:

### Example

```python
from upload_to_sharepoint.sharepoint_upload import upload_file_to_sharepoint

# User credentials
username = 'your_username'
password = 'your_password'  # Consider using a more secure method for password management

# SharePoint site details
sharepoint_site = 'https://your-sharepoint-site-url'
target_folder_relative_url_base = '/sites/your_site_name/Shared Documents/target_folder'

# Local file to upload
file_name = 'path_to_your_file.txt'

# Upload the file
upload_file_to_sharepoint(username, password, sharepoint_site, target_folder_relative_url_base, file_name)
```

### Parameters

- `username`: Your SharePoint username.
- `password`: Your SharePoint password.
- `sharepoint_site`: The URL of your SharePoint site (e.g., `https://your-organization.sharepoint.com/sites/your_site_name`).
- `target_folder_relative_url_base`: The relative URL to the target folder in SharePoint (e.g., `/sites/your_site_name/Shared Documents/target_folder`).
- `file_name`: The path to the local file you want to upload.
omegaconf-cloud-resolvers 0.2.0
Omegaconf custom resolvers to retrieve configuration values from cloud services
Requires Python: <4.0,>=3.9

# Omegaconf Plugin: Cloud Secrets

This package is a plugin designed to enhance OmegaConf by providing additional custom resolvers to **securely retrieve
sensitive values** that should not be hard-coded in your configuration files.

Currently, there are resolvers for:

* AWS:
    * Secrets Manager
    * Parameter Store
* Google Cloud Platform (GCP):
    * Secret Manager
* Microsoft Azure:
    * Key Vault

## Installation

 * AWS:
```
pip install omegaconf-cloud-resolvers[aws]
```

 * GCP:
```
pip install omegaconf-cloud-resolvers[gcp]
```

 * Azure:
```
pip install omegaconf-cloud-resolvers[az]
```

## Quickstart

The following is an introductory example using a secret stored in AWS Secrets Manager.

First create a secret in the AWS Secrets Manager. You can use the CLI:

```bash
aws secretsmanager create-secret --name secret_jwt --secret-string 'thiscouldbe.a.jwt'
```

```python
from omegaconf import OmegaConf
from omegaconf_cloud_resolvers import register_custom_resolvers
from omegaconf_cloud_resolvers.resolvers.aws import AWSSecretsManagerResolver

# Option A. Define an env var: `AWS_DEFAULT_PROFILE=<your-aws-profile>`
# If you do, there is no need to pass a Session to the PluginResolver

# Option B. Alternatively you can create a boto3 session and pass it to the `AWSSecretsManagerResolver`
# Check `.aws/config` to see what are your profiles.
#   from boto3 import Session
#   session = Session(profile_name="<your-aws-profile>")

# Define the custom resolver. The dict key is the name that you will use  in your config
resolvers = {
    "aws_secretsmanager": AWSSecretsManagerResolver(),
}
# Use CustomResolverInjector to declare the resolver. You cannot inject twice the same key.
register_custom_resolvers(**resolvers)

# The syntax is: <resolver-name>:<secret-name>
conf = OmegaConf.create({"secret": "${aws_secretsmanager:secret_jwt}"})
print("Your secret is:", conf["secret"])  # THAT IS AN ILLUSTRATIVE EXAMPLE, NEVER DO THIS IN PRODUCTION
```

## Roadmap

- [X] Resolver for Azure Key Vault
- [ ] Support for older secret version - AWS Secrets Manager Resolver
- [ ] Examples using AWS services - Lambda
- [ ] Examples using Google Cloud Platform services - Functions


# WARNING

This package is in a very early and experimental stage, use it under your own responsibility.

# Troubleshooting


* **[AWS]** NoCredentialsError raised while resolving interpolation: Unable to locate credentials
  You might not have configured a default profile or provided with a session to a AWS Resolver.
The-GhanaNLP-python-library 0.1.0
A Python library for interacting with the GhanaNLP API
Requires Python: >=3.6

# Ghana NLP Python Client

This is a Python client library for interacting with the [Ghana NLP API](https://api.ghananlp.org). The library provides simple methods to leverage local African language technologies, including **translation**, **speech-to-text (STT)**, and **text-to-speech (TTS)**, for building localized applications.

## Features

- **Translation**: Convert text from one language to another (e.g., English to Twi).
- **Speech-to-Text (STT)**: Convert spoken language (audio files) into text.
- **Text-to-Speech (TTS)**: Convert text into natural-sounding speech in local languages.

## Installation

You can install this library using `pip`:

```bash
pip install ghana-nlp