semvec/pypi-packages huggingface dataset:
db-crud-automated 0.0.10
A Python package for connecting with databases.
License: MIT
Requires Python: >=3.7

# 🚀 Unified Database Connector Package

## Overview

**DB Crud Automated* is a powerful tool designed to simplify and automate database operations, particularly for MongoDB. This library allows developers to easily connect to a MongoDB database and perform Create, Read, Update, and Delete (CRUD) operations with minimal setup and code. The goal of Database Automator is to streamline database interactions and enhance productivity for developers working with databases.

## Goal

The primary objective of Database Automator is to automate functionalities for connecting to MongoDB and executing CRUD operations efficiently. The library aims to provide a user-friendly interface that abstracts the complexities of database interactions.

### Future Improvements

- Support for additional databases such as **MySQL**, **Cassandra**, and others.
- Enhanced error handling and logging features.
- More comprehensive documentation and examples soon.

## Installation

To install Database Automator, you can use pip. Run the following command in your terminal:

```bash
pip install db-crud-automated
```

## Features

- ✅ **Easy Connection:** Simplifies the process of connecting to MongoDB.
- 🔄 **CRUD Operations:** Provides straightforward methods to perform Create, Read, Update, and Delete operations.
- 🌱 **Extensibility:** Future support for other databases such as MySQL and Cassandra.

## Usage

Here’s a quick example of how to use the `mongo_operation` class to connect to a MongoDB database and perform CRUD operations:

### Example

```bash
from mongodb_connect.mongo_crud import mongo_operation

# Initialize the MongoDB operation class
mongo_client = mongo_operation(client_url='your_mongodb_uri', 
                               database_name='your_database_name', 
                               collection_name='your_collection_name')

# Create a new record
record = {'name': 'John Doe', 'age': 30}
mongo_client.insert_record(record, collection_name='your_collection_name')

# Bulk insert records from a CSV file
mongo_client.bulk_insert('path_to_your_file.csv', collection_name='your_collection_name')

# You can also use a list of records for insertion
records_list = [
    {'name': 'Alice', 'age': 25},
    {'name': 'Bob', 'age': 28}
]
mongo_client.insert_record(records_list, collection_name='your_collection_name')
```

## Contributing

🤝 Contributions are welcome! If you have suggestions or improvements, please [open an issue](https://github.com/shaheennabi/Unified-Database-Connector-Package/issues) or submit a pull request.

## License

📝 This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.

## Contact

📧 For questions or support, feel free to reach out via email at [mailmessage30@gmail.com](mailto:mailmessage30@gmail.com).

---


### Package or Repo will be updated soon
keyring-gcloud 0.1.4
A keyring backend for Google Cloud Platform
License: MIT
Requires Python: >=3.12
Keywords: keyring, gcloud, google cloud

# keyring-gcloud

A keyring backend for Google Cloud Platform.

## Installation

We recommend using [uv](https://github.com/astral-sh/uv) to install this keyring
backend.

```bash
uv tool install keyring --with keyring-gcloud
```

## How it works

This backend does not store any credentials by itself. It will choose a
storage-backend by looking at all viable backends and choose the one with the
highest priority. It works by intercepting invocations of `keyring get|set`. A
`get` operation that is intercepted works like this:

1. Attempt to get the value from the storage backend
2. Decode this value as if it was written by **this backend**
   1. If decoding successful, check the expiry of the token
      1. If not expired, return the token.
   2. If decoding unsuccessful, use google-auth to fetch a new token (similar
      to doing `gcloud auth print-access-token`)
      1. Store the new token in the storage backend
      2. Return the new token

A `set` operation is simpler. It will just prepend an expiry of 1 hour to the
supplied token, encode these two values and store them in the storage backend.

## Usage

There are two ways to use this backend:

### 1: Via the `keyring` command line parameters:

AKA the "I'll use it on-demand, thank you very much" method.

```bash
export KEYRING_GCLOUD_ON=1_or_yes_or_any_string_really
keyring --keyring-backend keyring_gcloud.GoogleCloudKeyring <...>
```

The env variable `KEYRING_GCLOUD_ON` will make this backend intercept any
invocation.

### 2: Via the keyring configuration file:

In the keyring configuration file, add the following:

```toml
[backend]
default-keyring=keyring_gcloud.GoogleCloudKeyring
```

This will make `keyring` use the `GoogleCloudKeyring` backend on all calls to
`keyring get foo bar` (regardless of any `--keyring-backend` parameter). This
has some risk, since if you were to run

```bash
keyring set some-website foo@example.com mypassword
```

it is unlikely that you would want `mypassword` to have an expiry of 1 hour. To
lower this risk, you should **unset** the `KEYRING_GCLOUD_ON` environment
variable. When that env variable is **not set**, the backend only intercepts if
the `username` for the request matches `KEYRING_GCLOUD_USERNAME` (default
`oauth2accesstoken`).

So a call like

```bash
keyring get https://private-pypi.example.com/simple/ oauth2accesstoken
```

would be intercepted. Python tooling sometimes use keyring to fetch credentials
for private registries. `poetry` is an example of a service that does this with
`oauth2accesstoken` as the username). `uv` can use keyring if
`[[tool.uv.index]]` is set to a private registry and the environment variable
`UV_KEYRING_PROVIDER` is set to `subprocess`.
db-crud-automates 0.0.3
A Python package for connecting with databases.
License: MIT
Requires Python: >=3.7

# 🚀 Unified Database Connector Package

## Overview

**DB Crud Automates* is a powerful tool designed to simplify and automate database operations, particularly for MongoDB. This library allows developers to easily connect to a MongoDB database and perform Create, Read, Update, and Delete (CRUD) operations with minimal setup and code. The goal of Database Automator is to streamline database interactions and enhance productivity for developers working with databases.

## Goal

The primary objective of Database Automator is to automate functionalities for connecting to MongoDB and executing CRUD operations efficiently. The library aims to provide a user-friendly interface that abstracts the complexities of database interactions.

### Future Improvements

- Support for additional databases such as **MySQL**, **Cassandra**, and others.
- Enhanced error handling and logging features.
- More comprehensive documentation and examples soon.

## Installation

To install Database Automator, you can use pip. Run the following command in your terminal:

```bash
pip install db-crud-automates```

## Features

- ✅ **Easy Connection:** Simplifies the process of connecting to MongoDB.
- 🔄 **CRUD Operations:** Provides straightforward methods to perform Create, Read, Update, and Delete operations.
- 🌱 **Extensibility:** Future support for other databases such as MySQL and Cassandra.

## Usage

Here’s a quick example of how to use the `mongo_operation` class to connect to a MongoDB database and perform CRUD operations:

### Example

```python
from mongodb_connect.mongo_crud import mongo_operation

# Initialize the MongoDB operation class
mongo_client = mongo_operation(client_url='your_mongodb_uri', 
                               database_name='your_database_name', 
                               collection_name='your_collection_name')

# Create a new record
record = {'name': 'John Doe', 'age': 30}
mongo_client.insert_record(record, collection_name='your_collection_name')

# Bulk insert records from a CSV file
mongo_client.bulk_insert('path_to_your_file.csv', collection_name='your_collection_name')

# You can also use a list of records for insertion
records_list = [
    {'name': 'Alice', 'age': 25},
    {'name': 'Bob', 'age': 28}
]
mongo_client.insert_record(records_list, collection_name='your_collection_name')
```

## Contributing

🤝 Contributions are welcome! If you have suggestions or improvements, please [open an issue](https://github.com/shaheennabi/Unified-Database-Connector-Package/issues) or submit a pull request.

## License

📝 This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.

## Contact

📧 For questions or support, feel free to reach out via email at [mailmessage30@gmail.com](mailto:mailmessage30@gmail.com).

---

### Notes

- Replace `your_mongodb_uri`, `your_database_name`, `your_collection_name`, and `your_email@example.com` with appropriate values.
- Adjust any sections based on your specific implementation and requirements.