semvec/pypi-packages huggingface dataset:
conversiontelemetry 0.0.3
A very simple application to post and get jsons to a mongodb database
Requires Python: <4.0,>=3.8

# Telemetry

This very simple app retrieves and posts json contents to a mongodb.

## Build and Install

```bash
git clone git@github.com:bendhouseart/telemetry.git
cd telemetry
poetry install
    If you receive error regarding python version, change it in pyproject.toml and run poetry lock --no-update
poetry build
pip install dist/telemetry-0.1.0.tar.gz
```

## Setup for your environment

After installing in the previous step run the `setup-telemetry` command and follow the prompt:

```bash
(telemetry-LxPB_LWP-py3.11) setup-telemetry                                          
Enter the path to the .env file (/Users/galassiae/.telemetry.env): 
Enter the connection string to the mongodb database (127.0.0.1:27417): 
Enter the name of the mongodb user (): 
Enter the name of the database (telemetry): 
Enter the name of the collection (telemetry): 
Enable rate limiting? [y/n]: n
The .env file already exists
MONGO_DB_ADDRESS='127.0.0.1:27417'
MONGO_DB_USER='telemetry'
MONGO_DB_NAME='telemetry'
MONGO_DB_COLLECTION='telemetry'
TELEMETRY_RATE_LIMITING='False'

Override existing .env file? [y/n]: y
```

## Running this app

This app can started using the `start-telemetry` command after installation via pip:

`start-telemetry`

Or it can be run directly with:

`uvicorn telemetry:app --host 0.0.0.0 --port 80`

## Post a JSON to the database

```bash
curl -H 'Content-Type: application/json' -d '{ "what":"myjson","its":"toogood" }' -X POST 127.0.0.1:8000/telemetry/
```

Additionally there are two very simple scripts that illustrate how to post and get using this app:

```bash
bash telemetry/curl_post.sh
bash telemetry/curl_get.sh
```

## Some additional notes for interacting with the mongodb directly or starting this app

start uvicorn/run this app

`uvicorn telemetry:app --host 0.0.0.0 --port 80`

to get into monash/mongodb interface run

`mongosh`

to connect to telemetry database

first show all dbs

`show dbs`

select the telemetry db for use

`use telemetry`

and to show all items in the selected telemetry db

`db.telemetry.find()`
agentfud-password-manager 0.0.4
AgentFUD Password Manager
Requires Python: >=3.1
Keywords: python, python3, Password manager, command line

# AgentFUD Password Manager #

This software is a proof of concept implenetation of a secure password storage.
It creates a single sqlite file which you can carry with you and even store it publicly,
no one will ever be able to decrypt your passwords without knowing your master password.

### Installation ###

```shell
pip install agentfud_password_manager
```

### Usage ###
```shell
bash$ af-password-manager
Usage: af-password-manager [OPTIONS] COMMAND [ARGS]...

  Welcome to AgentFUD Password Manager! A cli tool for managing your passwords

Options:
  --help  Show this message and exit.

Commands:
  add       Adding a new entry to the database
  delete    Deletes an entry
  generate  Generates a random password
  get       Decrypts the password and copies it to the clipboard
  info      AgentFUD Password Manager version and project info
  init      Initialization of the password manager
  list      Lists all the entries
```

- First initialize a new database if you don't have it (passwords.sqlite will be created)
```shell
bash$ af-password-manager init
```
It will ask for a master password. Keep it in mind that this is the key for everything, without it you won't be able to read or create new entries.

All the commands have help so the easiest way to explore what it can do is by typing --help after the command, for example:
```shell
bash$ af-password-manager add --help
Usage: af-password-manager add [OPTIONS]

  Adding a new entry to the database

Options:
  -su, --site-url TEXT    URL of the site where you want to log in
  -u, --username TEXT     User name
  -e, --email TEXT        Email address
  -p, --password TEXT     Password
  --master_password TEXT
  --help                  Show this message and exit.
```

Adding a new item is easy if you already signed for a service and you know the password.
```shell
bash$ af-password-manager add -su yoursite.com -e your@mail.com -p MySecretPassword33
```

If you don't have a password for a service the app can generate one for you. Simply just leave out the -p option
```shell
bash$ af-password-manager add -su yoursite.com -e your@mail.com
```

Getting one item is easy. first call the list, grab the id, then feed it to the ***get*** command
```shell
bash$ af-password-manager get -i 33
```
Remember, it won't print out to the screen, simply it copies to your clipboard.

### Development install ###
```shell
bash$ git@github.com:AgentFUD/agentfud-password-manager.git
bash$ cd agentfud-password-manager
bash$ python3 -m venv ./venv
bash$ source ./venv/bin/activate
bash$ pip install -r requirements.txt
bash$ pip install --editable .
```

Enjoy!