m-filetypes


Namem-filetypes JSON
Version 0.1.9 PyPI version JSON
download
home_pagehttps://github.com/mobiovn
SummaryMobio Filetype Libs
upload_time2023-10-16 17:20:07
maintainer
docs_urlNone
authorMOBIO
requires_python>=3
licenseMIT
keywords mobio filetype contact spam
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ##  Thư viện kiểm tra file type.

### Cài đặt:

```bash
 $ pip3 install m-filetype
 ```

Link chữ ký: https://en.wikipedia.org/wiki/List_of_file_signatures

### Sử dụng
```python
from mobio.sdks.filetype.file import File
from mobio.sdks.filetype.common import ExtensionImage

File.check_filetype_by_file_extensions(
    file_binary=file, # Check filetype của định dạng file binary.Mặc định None
    file_path=file_path, # Check filetype của path file
    extensions=[ExtensionImage.PNG] # Danh sách extension cần check.
)

```

#### Lấy extensions support
- Extension Image:
```python
from mobio.sdks.filetype.common import ExtensionImage
ExtensionImage.LIST_EXTENSION_SUPPORTED
```
- Extension Document:
```python
from mobio.sdks.filetype.common import ExtensionDocument
ExtensionDocument.LIST_EXTENSION_SUPPORTED
```
- Extension Audio:
```python
from mobio.sdks.filetype.common import ExtensionAudio
ExtensionAudio.LIST_EXTENSION_SUPPORTED
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mobiovn",
    "name": "m-filetypes",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "mobio,filetype,contact spam",
    "author": "MOBIO",
    "author_email": "contact@mobio.vn",
    "download_url": "https://files.pythonhosted.org/packages/69/7d/f4a18a63f0cf05962bd7e3220fa2a8c3aa220cb46d8cb274bf4bfbcd0278/m-filetypes-0.1.9.tar.gz",
    "platform": null,
    "description": "##  Th\u01b0 vi\u1ec7n ki\u1ec3m tra file type.\n\n### C\u00e0i \u0111\u1eb7t:\n\n```bash\n $ pip3 install m-filetype\n ```\n\nLink ch\u1eef k\u00fd: https://en.wikipedia.org/wiki/List_of_file_signatures\n\n### S\u1eed d\u1ee5ng\n```python\nfrom mobio.sdks.filetype.file import File\nfrom mobio.sdks.filetype.common import ExtensionImage\n\nFile.check_filetype_by_file_extensions(\n    file_binary=file, # Check filetype c\u1ee7a \u0111\u1ecbnh d\u1ea1ng file binary.M\u1eb7c \u0111\u1ecbnh None\n    file_path=file_path, # Check filetype c\u1ee7a path file\n    extensions=[ExtensionImage.PNG] # Danh s\u00e1ch extension c\u1ea7n check.\n)\n\n```\n\n#### L\u1ea5y extensions support\n- Extension Image:\n```python\nfrom mobio.sdks.filetype.common import ExtensionImage\nExtensionImage.LIST_EXTENSION_SUPPORTED\n```\n- Extension Document:\n```python\nfrom mobio.sdks.filetype.common import ExtensionDocument\nExtensionDocument.LIST_EXTENSION_SUPPORTED\n```\n- Extension Audio:\n```python\nfrom mobio.sdks.filetype.common import ExtensionAudio\nExtensionAudio.LIST_EXTENSION_SUPPORTED\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Mobio Filetype Libs",
    "version": "0.1.9",
    "project_urls": {
        "Homepage": "https://github.com/mobiovn",
        "Source": "https://github.com/mobiovn"
    },
    "split_keywords": [
        "mobio",
        "filetype",
        "contact spam"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "697df4a18a63f0cf05962bd7e3220fa2a8c3aa220cb46d8cb274bf4bfbcd0278",
                "md5": "9e4fa9124e125dda369688bcde200877",
                "sha256": "3f25f902a65f92a1502f6dda42e4e504ea106a11765463c62b749c8d6c52d0c8"
            },
            "downloads": -1,
            "filename": "m-filetypes-0.1.9.tar.gz",
            "has_sig": false,
            "md5_digest": "9e4fa9124e125dda369688bcde200877",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 19882,
            "upload_time": "2023-10-16T17:20:07",
            "upload_time_iso_8601": "2023-10-16T17:20:07.773744Z",
            "url": "https://files.pythonhosted.org/packages/69/7d/f4a18a63f0cf05962bd7e3220fa2a8c3aa220cb46d8cb274bf4bfbcd0278/m-filetypes-0.1.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-16 17:20:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "m-filetypes"
}
        
Elapsed time: 0.15616s