semvec/pypi-packages huggingface dataset:
dbjson 0.0.3
This is a simple flat file database which stores its data in a JSON file.
Requires Python: >=3.6

<p align="center" width="100%">
    <img width="33%" src="https://i.imgur.com/gbT5IKBm.jpg">
</p>

# Getting started with DBJson

```python
from dbjson.main import DB

# Instatilizing DB class from dbjson.main
db = DB()

# Test Data
data = {
  "id": 1,
  "first_name": "Vivyan",
  "last_name": "Treherne",
  "email": "vtreherne0@jigsy.com",
  "ip_address": "94.254.247.240"
}
collection = "users"

# Adding Record
data = db.createRecord(collection, data)
print(data)
# Response -> {'__id__': 'f00ae4e3ca8c3e318a68acc460e5f401', '__data__': {'id': 1, 'first_name': 'Vivyan', 'last_name': 'Treherne', 'email': 'vtreherne0@jigsy.com', 'ip_address': '94.254.247.240'}}

# Updating Record
record_key = "f00ae4e3ca8c3e318a68acc460e5f401"
to_update = [
    {"email": "jhon@email.com"},
    {"ip_address": "google.com"}
]
data = db.updateRecord(collection, "f00ae4e3ca8c3e318a68acc460e5f401", to_update)
print(data)
# Response -> {'id': 1, 'first_name': 'Vivyan', 'last_name': 'Treherne', 'email': 'jhon@email.com', 'ip_address': 'google.com'}

# Deleting Record
db.removeRecord(collection, record_key)
```

---

## What is DBJson?

Read the [DBJson docs here](https://ketanip.github.io/dbjson/) .

This is a simple flat file database which stores its data in filesystem ( folders and JSONfiles ).
It is NOT INTENTED TO USE IN PRODUCTION.
It can be used times when you are too lazy to write a schema and do other stuff for a ORM like SQLAlchemy.

Data is structured as follows:

Collections : contains records.
records: contains key value pair.
key value pair ( key: str, value: dictionary ).

### What are its features ?

It can CRUD data.

### What can it Do ?

It can do all the basic things that a database can do, which includes:

1. creating records
2. reading records
3. updating records
4. deleting records
5. filter records

### Why was it made ?

Sometimes I am to lazy to setup database make database models and all that stuff, and I like key-value pair databases for small fun projects. So I could not find in python so I decided to make one for myself.

Hope you guys like it.😊

Read the [DBJson docs here](https://ketanip.github.io/dbjson/) .
PicSeek 1.0.0
A simple Python image search library
Requires Python: >=3.6

# PicSeek

PicSeek is a Python library for searching for images on IStock and Flickr. It provides a simple and easy-to-use interface for accessing these services and retrieving images based on various search parameters.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install PicSeek.

```bash
pip install PicSeek
```

## Examples
### Search in Flickr
``` python
from picseek import Flickr

flickr = Flickr()

for img in flickr.search(text="cat", page=1, per_page=2):
	print(img.link)
	#print(img.content)
	#print(img.base64)
	#img.save(filename="img.png")
```

### Search in IStock
``` python
from picseek import IStock

istock = IStock()

for img in istock.search(text="cat", page=1):
	print(img.link)
	#print(img.content)
	#print(img.base64)
	#img.save(filename="img.png")
```

## Developer
Telegram: [https://t.me/O0O0I](https://t.me/O0O0I)
pscrape 0.0.3
Quickly generate a list of free and working proxies
Requires Python: >=3.8

# pscrape

quickly generate a list of free and working proxies

---


## Installation

```
python3 -m pip install pscrape 
```

---

## Usage

```
>>> from pscrape import Proxies
>>>
>>> proxies = Proxies(country='US', anon='elite', https=True).scrape()
>>> proxies
['20.241.236.196:3128' '204.2.218.145:8080', '104.223.135.178:10000', '5.78.50.231:8888', '4.16.68.158:443' '104.148.86.58:3129']
```

**Proxies** class parameters:
- **country** (None | str, optional): Country ISO Code. Defaults to None.
- **anon** (None | str, optional): Anonymity level. Defaults to None.
    anonymous, elite, or transparent.
- **https** (bool, optional): Https only. Defaults to False.
- **debug** (bool, optional): Display scraped and validated proxies. Defaults to False.


### CLI
```
usage: pscrape [-h] [-c COUNTRY] [-a {anonymous,elite,transparent}] [--https]
                    [-o OUTPUT_FILE]

optional arguments:
-h, --help            show this help message and exit
-c COUNTRY, --country COUNTRY
                    Country ISO Code
-a {anonymous,elite,transparent}, --anon {anonymous,elite,transparent}
                    Anonymity level
--https               Https only
-o OUTPUT_FILE, --output_file OUTPUT_FILE
                    Save list of proxies to file.
```

Example:

```
$ pscrape -c US --https -o /tmp/proxies.txt
```

```
+ Total scraped proxies:  12
> 20.241.236.196:3128    | US  | anonymous    | https
> 204.2.218.145:8080     | US  | elite proxy  | https
> 104.223.135.178:10000  | US  | elite proxy  | https
> 5.78.50.231:8888       | US  | elite proxy  | https
> 4.16.68.158:443        | US  | elite proxy  | https
> 104.148.86.58:3129     | US  | elite proxy  | https
+ Total validated proxies: 6
+ Saved proxy list to: /tmp/proxies.txt
```

```
$ cat /tmp/proxies.txt
```

```
20.241.236.196:3128
204.2.218.145:8080
104.223.135.178:10000
5.78.50.231:8888
4.16.68.158:443
104.148.86.58:3129
```