file-type-identifier 0.2.2__tar.gz → 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: file-type-identifier
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Library for identifying file type
5
5
  License: MIT
6
6
  Author: Kurbanov Bulat
@@ -10,8 +10,9 @@ Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.9
12
12
  Classifier: Programming Language :: Python :: 3.10
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
15
16
  Requires-Dist: httpx
16
17
  Description-Content-Type: text/markdown
17
18
 
@@ -160,6 +160,8 @@ FILE_HEADERS: dict[FileTypes, set[str]] = {
160
160
  FileTypes.EPUB: {"50 4B 03 04", "50 4B 05 06", "50 4B 07 08"},
161
161
  FileTypes.FB2: {"3c 3f 78 6d 6c 20"},
162
162
  FileTypes.RTF: {"7b 5c 72 74 66"},
163
+ FileTypes.M4A: {"nn nn nn nn 66 74 79 70 4D 34 41 20"},
164
+ FileTypes.MOV: {"nn nn nn nn 66 74 79 70 71 74 20 20"},
163
165
  }
164
166
 
165
167
 
@@ -76,6 +76,8 @@ FILE_MIMES: dict[FileTypes, set[str]] = {
76
76
  FileTypes.EPUB: {"application/epub+zip"},
77
77
  FileTypes.FB2: {"application/fb2"},
78
78
  FileTypes.RTF: {"text/rtf", "application/rtf"},
79
+ FileTypes.M4A: {"audio/mp4"},
80
+ FileTypes.MOV: {"video/quicktime"}
79
81
  }
80
82
 
81
83
 
@@ -132,3 +132,5 @@ class FileTypes(Enum):
132
132
  EPUB = "epub"
133
133
  FB2 = "fb2"
134
134
  RTF = "rtf"
135
+ M4A = "m4a"
136
+ MOV = "mov"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "file-type-identifier"
3
- version = "0.2.2"
3
+ version = "0.2.4"
4
4
  description = "Library for identifying file type"
5
5
  authors = ["Kurbanov Bulat <b.kurbanov@speechki.org>", "Pavel Maltsev <zeden123@gmail.com>"]
6
6
  readme = "README.md"
@@ -19,7 +19,7 @@ python = "^3.9"
19
19
  httpx = "*"
20
20
 
21
21
  [tool.poetry.dev-dependencies]
22
- pytest = "^7.1"
22
+ pytest = "^7.2"
23
23
  pytest-cov = "^4.0.0"
24
24
  pytest-asyncio = "^0.19"
25
25
 
@@ -1,30 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from setuptools import setup
3
-
4
- packages = \
5
- ['fti', 'fti.file_type_getters']
6
-
7
- package_data = \
8
- {'': ['*']}
9
-
10
- install_requires = \
11
- ['httpx']
12
-
13
- setup_kwargs = {
14
- 'name': 'file-type-identifier',
15
- 'version': '0.2.2',
16
- 'description': 'Library for identifying file type',
17
- 'long_description': '# file-type-indentifier\n\nLibrary for identifying file type\n\n## Examples\n\n```\nimport asyncio\n\nfrom fti import FileTypes, get_file_types, get_file_types_async\n\n\n# sync\nfile_types = get_file_types("http://example.com/download_pdf")\n\nFileTypes.PDF in file_types\n\n\n# async\nfile_types = asyncio.run(\n get_file_types_async("http://example.com/download_pdf")\n)\n\nFileTypes.PDF in file_types\n```',
18
- 'author': 'Kurbanov Bulat',
19
- 'author_email': 'b.kurbanov@speechki.org',
20
- 'maintainer': 'None',
21
- 'maintainer_email': 'None',
22
- 'url': 'None',
23
- 'packages': packages,
24
- 'package_data': package_data,
25
- 'install_requires': install_requires,
26
- 'python_requires': '>=3.9,<4.0',
27
- }
28
-
29
-
30
- setup(**setup_kwargs)