semvec/pypi-packages huggingface dataset:
formatfinder 0.1.0
A library that can easily find out the format of a binary file.
Requires Python: >=3.7

# FormatFinder

[![release](https://github.com/AkagiYui/FormatFinder/workflows/release/badge.svg)](https://github.com/AkagiYui/FormatFinder/actions?query=workflow%3Arelease)  [![pypi](https://img.shields.io/pypi/v/FormatFinder.svg)](https://pypi.org/project/formatfinder/) ![support-version](https://img.shields.io/pypi/pyversions/formatfinder)  [![license](https://img.shields.io/github/license/AkagiYui/FormatFinder)](https://github.com/AkagiYui/FormatFinder/blob/master/LICENSE)  [![commit](https://img.shields.io/github/last-commit/AkagiYui/FormatFinder)](https://github.com/AkagiYui/FormatFinder/commits/master)

A python library that can easily find out the real format of a binary file with a common format.

可以轻松找到一个常见格式的二进制文件的真实格式。

The result of the finder may be wrong, please be careful.

这个工具返回的结果可能是错误的，请谨慎使用。

If you find any bug or mistake, please report it in issues.

如果你发现了任何 bug 或者错误，请在 issues 中告诉我。

## Install 安装

```shell
pip install formatfinder
```

## Usage 使用

```python
from formatfinder import get_file_format

get_file_format('xxx.zip')  # ['zip', 'jar', 'apk', 'xapk']
get_file_format('fff.mp3')  # ['ogg'] # so the 'mp3' tag may be wrong
get_file_format('hhh')  # ['rar'] # now you find out the real format of the file with no extension name
```

## [Changelog 更新日志](https://github.com/AkagiYui/FormatFinder/blob/master/Changelog.md)

## Thanks 致谢

[python3通过文件头判断文件类型](https://blog.csdn.net/privateobject/article/details/78069500)
vmware_workstation_cli 0.1.5
Top-level package for vmware-workstation-cli.
Keywords: vmware_workstation_cli

======================
vmware-workstation-cli
======================


![Image](https://img.shields.io/github/license/rstms/vmware_workstation_cli)

![Image](https://img.shields.io/pypi/v/vmware_workstation_cli.svg)


![Image](https://circleci.com/gh/rstms/vmware_workstation_cli/tree/master.svg?style=shield)


![Image](https://pyup.io/repos/github/rstms/vmware_workstation_cli/shield.svg)

VMware Workstation Pro REST API client


* Free software: MIT license
* Documentation: https://vmware-workstation-cli.readthedocs.io.



Credits
-------

This package was created with Cookiecutter and `rstms/cookiecutter-python-cli`, a fork of the `audreyr/cookiecutter-pypackage` project template.

[audreyr/cookiecutter](https://github.com/audreyr/cookiecutter)
[audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)
[rstms/cookiecutter-python-cli](https://github.com/rstms/cookiecutter-python-cli)
kongodb 0.0.20
Kongodb: Hybrid Row-and-Document Oriented datastore leveraging SQL/RDBMS database: SQLite, MySQL, MariaDB, Postgresql
Requires Python: >=3.8.0

# Kongodb

**Kongodb** is Hybrid Row-and-Document Oriented datastore leveraging SQL/RDBMS database: SQLite, MySQL, MariaDB, Postgresql 

Kongodb is both RDMBS + Document Oriented together.

It supports, regular SQL query along with Document Oriented and Key Value store.

Engine:
- SQLite
- Mariadb
- PostgreSQL
- MySQL



### Install

```python 
pip install kongodb
```

### Usage


```python
from kongodb import kongodb

# Open the db
db = kongodb("./my.db") 

# Select a collection 
# Collection will be created automatically
collection = db.collection("test")

# Get total items
print(len(collection))

# Add an item. It returns kongodb#Item
item = collection.add({
  "name": "Kongo",
  "type": "DB",
  "version": "1.0.0"
})

# Retrieve item by _id
_id = "9c5e5fbd05544700995c5fa3ca3ef214"
item = collection.get(_id)

# Access properties

item.get("name") # -> fun 
item.get("type") # -> DB
all_item_data = dict(item)

# Update a field
item.set("version", "1.0.1")

# or advance atomic update
item.update({
  "version": "1.0.1",
  "download:$inc": True,
  "ips:$xadd": "0.0.0.0"
})
#
item.get("version") # -> 1.0.1
item.get("download") # -> 1 or last value + 1
item.get("ips") # -> ["0.0.0.0"]

# Delete item
item.delete()

# Search
for item in collection.find():
  print(item.get("name"))


```

## ~ API ~

## Database

### kongodb

### #collection

To select a collection in the database

```python

from kongodb import kongodb 

db = kongodb()

users = fun.collection("users")

# all users

all_users = users.find_all()

```


### #Collection

List all the collections in the database 

```python

from kongodb import kongodb 

db = kongodb()

users = fun.collection("users")


```



## ColumnTypes For Index:

| Type | Column | SQlite | MariaDB | PostgreSQL|
| :--- | :---: | :---: | :---: | ---: |
| Integer | IntegerType | INT | INTEGER | INT |
| String | StringType | VARCHAR(n) | VARCHAR(n) | VARCHAR(n)|
| Bool | BoolType | INT(1) | TINYINT(1) | BOOLEAN |
| Datetime | DatetimeType | TIMESTAMP   | DATETIME | TIMESTAMP |
| Numeric | NumericType | FLOAT | DOUBLE PRECISION | DOUBLE PRECISION |

*n = the max number for the char

## ColumnType 

```
  types.[columtype](
      name:str,  # str: name of the field
      length:int, # int: length of the type if available 
      index:bool, # bool: to index the field
      unique:bool, # bool: to index and make field unique  
      default:Any # Any: any data to set as default
  )
ie: 



```

Example

```
types.StringType(
  name="myFieldName",
  length=125,
  index=True,
  unique=True,
  default="Hello"
)
```

Add Columns 

```
from kongodb import kongodb, types

COLUMNS = [
  types.IntegerType('count', index=True, default=0),
  types.BoolType('is_active', default=True),
  types.Datetime('created_at', default="NOW()"),
  types.String('full_name'),
  types.NumericType('amount', default=0.00)
]

db = kongodb("sqlite://")

collection = db.collection('test', columns=COLUMNS)

```