semvec/pypi-packages huggingface dataset:
network3-homer 0.1.1
Automated Business Ready Documents from network state stored on Hedera
Requires Python: >=3.8,<4.0

# network3_homer
Business ready documentation from network state stored on Hedera

## Setup
### Setup Python virtual environment
```console
$ python3 -m venv homer
$ source homer/bin/activate
(homer) $
```
### Setup Python virtual environment
```console
(socrates) $ pip install network3_homer
```

### Setup environment (Ubuntu with Java 11 OpenJDK)
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
export OPERATOR_ID={ Hedera Account }
export OPERATOR_PRIVATE_KEY={ Hedera private key }
MDBDict 1.0.4
A wrapper for Pymongo that turns clusters into auto-updating dictionaries
Keywords: mongodb,pymongo,dictionary

# MDBDict
MDBDict allows you to access MongoDB databases through an automatically updating dictionary

## Installation
To install, run the following command:
```
pip install mdbdict
```

Alternatively, you can download the source code and install it yourself:
```
git clone https://github.com/trigtbh/mdbdict.git
cd mdbdict
pip install -r requirements.txt
python setup.py install
```
---
## Usage

### Opening a cluster
```python
import mdbdict as md
db = md.MDict('mongodb://localhost:27017/') # Replace with your MongoDB URI
```
The contents of the cluster specified by your URI will be loaded into the dictionary.

---
### Displaying the contents of a collection
```python
collection = db['database']['collection'] # Collections are treated as lists of dictionaries
# The first key is the name of the database
# The second key is the name of the specific collection within the database
print(collection)
```
---
### Adding a document to a collection

```python
collection.append({"_id": 1, "name": "John Doe"})
```
---
### Editing a document in a collection

```python
document = collection[0]
document["name"] = "Jane Doe" # This change will be automatically saved to MongoDB
```
---
### Deleting a document in a collection

```python
del collection[0]
```