m-filetypes-test


Namem-filetypes-test JSON
Version 0.1.11 PyPI version JSON
download
home_pagehttps://github.com/mobiovn
SummaryMobio Filetype Libs
upload_time2023-10-16 17:13:39
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-test",
    "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/11/d0/2d4b0c2fb6d708cdc67a440aa1d001fe166a3e1eba0fad374fb7ce0af455/m-filetypes-test-0.1.11.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.11",
    "project_urls": {
        "Homepage": "https://github.com/mobiovn",
        "Source": "https://github.com/mobiovn"
    },
    "split_keywords": [
        "mobio",
        "filetype",
        "contact spam"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "11d02d4b0c2fb6d708cdc67a440aa1d001fe166a3e1eba0fad374fb7ce0af455",
                "md5": "6bf6dd252c75e53fda969ecf8585b4bc",
                "sha256": "e3640591a131df1777225c1bfea4911dbda732ac03efbc1167e709f138d0ec00"
            },
            "downloads": -1,
            "filename": "m-filetypes-test-0.1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "6bf6dd252c75e53fda969ecf8585b4bc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 19912,
            "upload_time": "2023-10-16T17:13:39",
            "upload_time_iso_8601": "2023-10-16T17:13:39.607636Z",
            "url": "https://files.pythonhosted.org/packages/11/d0/2d4b0c2fb6d708cdc67a440aa1d001fe166a3e1eba0fad374fb7ce0af455/m-filetypes-test-0.1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-16 17:13:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "m-filetypes-test"
}
        
Elapsed time: 0.17071s