semvec/pypi-packages huggingface dataset:
PSKConnect 0.0.2
A python package for connecting with database.
License: MIT
Requires Python: >=3.7

# mongo_operations: MongoDB Operations Simplified

*mongo_operations is a Python package designed to simplify common MongoDB operations. It provides an easy-to-use interface for interacting with MongoDB databases and collections. Whether you are inserting records, reading data, updating records, or performing bulk inserts, mongo_operations streamlines the process, making MongoDB operations straightforward.*

# Installation

Install the package using pip:

pip install PSKConnect==0.0.2

#  Usage

 ## Create an Instance of mongo_operation

   from mayyaDatabase import mongo_crud

   *Provide your MongoDB client URL and database name*
   mongo_op = mongo_crud.mongo_operation(client_url='your_mongo_client_url',database_name='your_database_name')

 ## Create a DataBase

   *Provide the name for your MongoDB collection*
   database = mongo_op.create_database()

 ## Create a Collection

   *Provide the name for your MongoDB collection*
   collection = mongo_op.create_collection(collection_name='your_collection_name')

 ## Insert Records

   *Insert a single record*
   record = {'key': 'value'}
   mongo_op.insert_record(record=record, collection_name='your_collection_name')

   *Insert multiple records*
   records = [{'key1': 'value1'}, {'key2': 'value2'}]
   mongo_op.insert_record(record=records, collection_name='your_collection_name')

 ## Read Records

   *Read all records from the collection*
   mongo_op.read_record(collection_name='your_collection_name')

 ## Delete Records

   *Provide a query to match records to be deleted*
   query = {'key': 'value'}
   mongo_op.delete_record(record=query, collection_name='your_collection_name')

 ## Update Records

   *Provide a query to match records to be updated and an update document*
   query = {'key': 'value'}
   update = {'$set': {'new_key': 'new_value'}}
   mongo_op.update_record(query=query, update=update, collection_name='your_collection_name')

 ## Bulk Insert from Data File

   *Provide the path to your data file (CSV or Excel)*
   data_file_path = 'path/to/your/datafile.csv'
   mongo_op.bulk_insert(datafile=data_file_path, collection_name='your_collection_name')

## Contributors

### SAIKIRANPATNANA
py4etrics 0.1.9
A package for py4etrics.github.io
License: MIT
Keywords: Truncated Regression,Tobit Model,Heckit Model

[![PyPI version fury.io](https://badge.fury.io/py/py4etrics.svg)](https://pypi.python.org/pypi/py4etrics/)
[![CodeQL](https://github.com/Py4Etrics/py4etrics/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Py4Etrics/py4etrics/actions?query=workflow%codeql-analysis)
[![Downloads](https://static.pepy.tech/personalized-badge/py4etrics?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pepy.tech/project/py4etrics)

# What Is This Module For

This module is for
* Truncated Regression
* Tobit Model
* Heckit Model

[Pythonで学ぶ入門計量経済学](https://py4etrics.github.io/) explains how to use it in Japanese. 
Or click its [Google translated version in English](https://translate.google.com/translate?sl=ja&tl=en&u=https%3A%2F%2Fpy4etrics.github.io). 

# How to Use
```
import py4etrics 
```

# How to Install
```
pip install py4etrics
```
or
```
pip install git+https://github.com/spring-haru/py4etrics.git
```
or
```
git clone https://github.com/spring-haru/py4etrics.git
cd py4etrics
pip install .
```

# Thanks
The code is heavily inspired by [statsmodels](https://www.statsmodels.org/stable/index.html).