trustifi 29__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.
trustifi-29/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AYMENJD
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ include MANIFEST.in README.md LICENSE trustifi/cacert.pem trustifi/py.typed
2
+
3
+ exclude .github/
4
+ recursive-exclude .github
trustifi-29/PKG-INFO ADDED
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: trustifi
3
+ Version: 29
4
+ Summary: Python package for providing Google's CA Bundle.
5
+ Home-page: https://github.com/AYMENJD/trustifi
6
+ Author: AYMENJD
7
+ Author-email: let.me.code.safe@gmail.com
8
+ License: MIT
9
+ Project-URL: Source, https://github.com/AYMENJD/trustifi
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Natural Language :: English
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Classifier: Programming Language :: Python :: 3.8
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Requires-Python: >=3.7
26
+ License-File: LICENSE
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: home-page
32
+ Dynamic: license
33
+ Dynamic: license-file
34
+ Dynamic: project-url
35
+ Dynamic: requires-python
36
+ Dynamic: summary
37
+
38
+ # trustifi: Google-trusted Root CA Certificates for Python
39
+
40
+ trustifi provides **Google-trusted Root CA certificates** for TLS verification.
41
+ It is intended as a **drop-in replacement for [certifi](https://pypi.org/project/certifi)**, using Google’s trust
42
+ program and policies instead of Mozilla’s.
43
+
44
+ ## Installation
45
+
46
+ `trustifi` can be installed using `pip`:
47
+ ```bash
48
+ pip install trustifi
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ To reference the installed certificate authority (CA) bundle, you can use the
54
+ built-in function:
55
+
56
+ ```python
57
+ >>> import trustifi
58
+ >>> trustifi.where()
59
+ '/usr/local/lib/python3.7/site-packages/trustifi/cacert.pem'
60
+ ```
61
+
62
+ Or from the command line:
63
+
64
+ ```bash
65
+ python -m trustifi
66
+ /usr/local/lib/python3.7/site-packages/trustifi/cacert.pem
67
+ ```
trustifi-29/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # trustifi: Google-trusted Root CA Certificates for Python
2
+
3
+ trustifi provides **Google-trusted Root CA certificates** for TLS verification.
4
+ It is intended as a **drop-in replacement for [certifi](https://pypi.org/project/certifi)**, using Google’s trust
5
+ program and policies instead of Mozilla’s.
6
+
7
+ ## Installation
8
+
9
+ `trustifi` can be installed using `pip`:
10
+ ```bash
11
+ pip install trustifi
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ To reference the installed certificate authority (CA) bundle, you can use the
17
+ built-in function:
18
+
19
+ ```python
20
+ >>> import trustifi
21
+ >>> trustifi.where()
22
+ '/usr/local/lib/python3.7/site-packages/trustifi/cacert.pem'
23
+ ```
24
+
25
+ Or from the command line:
26
+
27
+ ```bash
28
+ python -m trustifi
29
+ /usr/local/lib/python3.7/site-packages/trustifi/cacert.pem
30
+ ```
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 42.0.0"]
3
+ build-backend = "setuptools.build_meta"
trustifi-29/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
trustifi-29/setup.py ADDED
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env python
2
+ import re
3
+
4
+ try:
5
+ from setuptools import setup
6
+ except ImportError:
7
+ from distutils.core import setup
8
+
9
+
10
+ version_regex = r'__version__ = ["\']([^"\']*)["\']'
11
+ with open("trustifi/__init__.py", encoding="utf-8") as f:
12
+ text = f.read()
13
+ match = re.search(version_regex, text)
14
+
15
+ if match:
16
+ VERSION = match.group(1)
17
+ else:
18
+ raise RuntimeError("No version number found!")
19
+
20
+ setup(
21
+ name="trustifi",
22
+ version=VERSION,
23
+ description="Python package for providing Google's CA Bundle.",
24
+ long_description=open("README.md").read(),
25
+ author="AYMENJD",
26
+ author_email="let.me.code.safe@gmail.com",
27
+ url="https://github.com/AYMENJD/trustifi",
28
+ packages=[
29
+ "trustifi",
30
+ ],
31
+ package_dir={"trustifi": "trustifi"},
32
+ package_data={"trustifi": ["*.pem", "py.typed"]},
33
+ include_package_data=True,
34
+ zip_safe=False,
35
+ license="MIT",
36
+ python_requires=">=3.7",
37
+ classifiers=[
38
+ "Development Status :: 5 - Production/Stable",
39
+ "Intended Audience :: Developers",
40
+ "License :: OSI Approved :: MIT License",
41
+ "Natural Language :: English",
42
+ "Programming Language :: Python",
43
+ "Programming Language :: Python :: 3",
44
+ "Programming Language :: Python :: 3 :: Only",
45
+ "Programming Language :: Python :: 3.7",
46
+ "Programming Language :: Python :: 3.8",
47
+ "Programming Language :: Python :: 3.9",
48
+ "Programming Language :: Python :: 3.10",
49
+ "Programming Language :: Python :: 3.11",
50
+ "Programming Language :: Python :: 3.12",
51
+ "Programming Language :: Python :: 3.13",
52
+ "Programming Language :: Python :: 3.14",
53
+ ],
54
+ project_urls={
55
+ "Source": "https://github.com/AYMENJD/trustifi",
56
+ },
57
+ )
@@ -0,0 +1,4 @@
1
+ from .core import contents, where
2
+
3
+ __all__ = ["contents", "where"]
4
+ __version__ = "29"
@@ -0,0 +1,8 @@
1
+ import argparse
2
+ from trustifi import contents, where
3
+
4
+ parser = argparse.ArgumentParser()
5
+ parser.add_argument("-c", "--contents", action="store_true")
6
+ args = parser.parse_args()
7
+
8
+ print(contents() if args.contents else where())