bifrostsdk 1.0.0__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.
Files changed (56) hide show
  1. bifrostsdk-1.0.0/LICENSE +21 -0
  2. bifrostsdk-1.0.0/PKG-INFO +124 -0
  3. bifrostsdk-1.0.0/README.md +94 -0
  4. bifrostsdk-1.0.0/bifrostsdk.egg-info/PKG-INFO +124 -0
  5. bifrostsdk-1.0.0/bifrostsdk.egg-info/SOURCES.txt +54 -0
  6. bifrostsdk-1.0.0/bifrostsdk.egg-info/dependency_links.txt +1 -0
  7. bifrostsdk-1.0.0/bifrostsdk.egg-info/requires.txt +4 -0
  8. bifrostsdk-1.0.0/bifrostsdk.egg-info/top_level.txt +1 -0
  9. bifrostsdk-1.0.0/byfrost/__init__.py +46 -0
  10. bifrostsdk-1.0.0/byfrost/__init__.pyi +81 -0
  11. bifrostsdk-1.0.0/byfrost/bifrost.py +148 -0
  12. bifrostsdk-1.0.0/byfrost/bifrost.pyi +36 -0
  13. bifrostsdk-1.0.0/byfrost/gcs/__init__.py +3 -0
  14. bifrostsdk-1.0.0/byfrost/gcs/__init__.pyi +3 -0
  15. bifrostsdk-1.0.0/byfrost/gcs/gcs.py +189 -0
  16. bifrostsdk-1.0.0/byfrost/gcs/gcs.pyi +65 -0
  17. bifrostsdk-1.0.0/byfrost/pinata/__init__.py +0 -0
  18. bifrostsdk-1.0.0/byfrost/pinata/__init__.pyi +0 -0
  19. bifrostsdk-1.0.0/byfrost/pinata/pinata.py +221 -0
  20. bifrostsdk-1.0.0/byfrost/pinata/pinata.pyi +54 -0
  21. bifrostsdk-1.0.0/byfrost/s3/__init__.py +0 -0
  22. bifrostsdk-1.0.0/byfrost/s3/__init__.pyi +0 -0
  23. bifrostsdk-1.0.0/byfrost/s3/s3.py +188 -0
  24. bifrostsdk-1.0.0/byfrost/s3/s3.pyi +65 -0
  25. bifrostsdk-1.0.0/byfrost/shared/__init__.py +3 -0
  26. bifrostsdk-1.0.0/byfrost/shared/config/__init__.py +29 -0
  27. bifrostsdk-1.0.0/byfrost/shared/config/__init__.pyi +29 -0
  28. bifrostsdk-1.0.0/byfrost/shared/config/option.py +21 -0
  29. bifrostsdk-1.0.0/byfrost/shared/config/provider.py +22 -0
  30. bifrostsdk-1.0.0/byfrost/shared/config/request.py +24 -0
  31. bifrostsdk-1.0.0/byfrost/shared/config/url.py +24 -0
  32. bifrostsdk-1.0.0/byfrost/shared/errors/__init__.py +16 -0
  33. bifrostsdk-1.0.0/byfrost/shared/errors/__init__.pyi +16 -0
  34. bifrostsdk-1.0.0/byfrost/shared/errors/color.py +18 -0
  35. bifrostsdk-1.0.0/byfrost/shared/errors/constant.py +30 -0
  36. bifrostsdk-1.0.0/byfrost/shared/errors/interface.py +21 -0
  37. bifrostsdk-1.0.0/byfrost/shared/errors/interface.pyi +21 -0
  38. bifrostsdk-1.0.0/byfrost/shared/errors/loga.py +28 -0
  39. bifrostsdk-1.0.0/byfrost/shared/errors/loga.pyi +21 -0
  40. bifrostsdk-1.0.0/byfrost/shared/request/__init__.py +1 -0
  41. bifrostsdk-1.0.0/byfrost/shared/request/__init__.pyi +1 -0
  42. bifrostsdk-1.0.0/byfrost/shared/request/builder.py +51 -0
  43. bifrostsdk-1.0.0/byfrost/shared/types/__init__.py +1 -0
  44. bifrostsdk-1.0.0/byfrost/shared/types/dataclass/__init__.py +4 -0
  45. bifrostsdk-1.0.0/byfrost/shared/types/dataclass/__init__.pyi +4 -0
  46. bifrostsdk-1.0.0/byfrost/shared/types/dataclass/bridge.py +155 -0
  47. bifrostsdk-1.0.0/byfrost/shared/types/dataclass/file.py +222 -0
  48. bifrostsdk-1.0.0/byfrost/shared/types/typeddict/__init__.py +12 -0
  49. bifrostsdk-1.0.0/byfrost/shared/types/typeddict/__init__.pyi +12 -0
  50. bifrostsdk-1.0.0/byfrost/shared/types/typeddict/bridge.py +85 -0
  51. bifrostsdk-1.0.0/byfrost/shared/types/typeddict/file.py +203 -0
  52. bifrostsdk-1.0.0/pyproject.toml +45 -0
  53. bifrostsdk-1.0.0/setup.cfg +4 -0
  54. bifrostsdk-1.0.0/tests/test_gcs.py +77 -0
  55. bifrostsdk-1.0.0/tests/test_pinata.py +69 -0
  56. bifrostsdk-1.0.0/tests/test_s3.py +79 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Ifihanagbara Olusheye
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,124 @@
1
+ Metadata-Version: 2.1
2
+ Name: bifrostsdk
3
+ Version: 1.0.0
4
+ Summary: Rainbow Bridge for shipping your files to any cloud storage service with the same function calls
5
+ Author-email: ifihan <victoriaolusheye@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Ifihan/byfrost
8
+ Project-URL: Bug Tracker, https://github.com/Ifihan/byfrost/issues
9
+ Project-URL: Documentation, https://github.com/Ifihan/byfrost/blob/main/README.md
10
+ Project-URL: Source Code, https://github.com/Ifihan/byfrost
11
+ Keywords: cloud,storage,gcs,s3,pinata,upload,aws,google-cloud,bifrost
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Topic :: Internet
23
+ Requires-Python: >=3.8
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: google-cloud-storage>=2.5.0
27
+ Requires-Dist: boto3>=1.34.0
28
+ Requires-Dist: requests>=2.25.0
29
+ Requires-Dist: requests-toolbelt>=1.0.0
30
+
31
+ # Bifrost
32
+
33
+ Rainbow Bridge for shipping your files to any cloud storage service with the same function calls.
34
+
35
+ <img src="https://user-images.githubusercontent.com/59074379/226159115-1cfcb221-127f-4574-87ed-b74b4b2c4591.png" width="1000" />
36
+
37
+ # Table of contents
38
+
39
+ - [Bifrost](#bifrost)
40
+ - [Problem Statement](#problem-statement)
41
+ - [Google Cloud Storage using GCS SDK](#google-cloud-storage-using-gcs-sdk)
42
+ - [Pinata Cloud using Pinata API](#pinata-cloud-using-pinata-api)
43
+ - [Using Bifrost](#using-bifrost)
44
+ - [Installation](#installation)
45
+ - [Usage](#usage)
46
+ - [Contributing](#contributing)
47
+ - [License](#license)
48
+ - [Changelog](#changelog)
49
+ - [Contributors](#contributors)
50
+
51
+ # Problem Statement
52
+
53
+ Many projects need to store files in the cloud and different projects might use different cloud storage providers or, sometimes, multiple cloud providers all at once. Using different SDKs with different implementations for each provider can be tedious and time-consuming. Bifrost aims to simplify the process of working with multiple cloud storage providers by providing a consistent API for all of them.
54
+
55
+ To gain a better understanding of how Bifrost addresses this issue, let's take you on a ride with Thor by comparing two different code samples for working with Google Cloud Storage and Pinata Cloud in a single project: one using a conventional approach and the other using Bifrost.
56
+
57
+ ## Google Cloud Storage using GCS SDK
58
+
59
+ Without Bifrost, the process of uploading a file to GCS using the Google Cloud Storage client library for Python would typically involve the following steps:
60
+
61
+ ```py
62
+ # to be added
63
+ ```
64
+
65
+ ## Pinata Cloud using Pinata API
66
+
67
+ ...and for Pinata Cloud, the usual way of uploading a file in Python would be something along the following steps:
68
+
69
+ ```py
70
+ # to be added
71
+ ```
72
+
73
+ We can already see the challenges of the conventional methods since they require you to learn to use multiple packages with separate implementation patterns. Now this is why `Bifrost` comes in! With Bifrost, you can mount rainbow bridges to the providers you want and use the same set of functions to upload files through any of these mounted bridges. This makes it much easier to work with multiple providers and streamlines the development process to just one learning curve.
74
+
75
+ Now, let's see how we can revamp the two samples above into something much more exciting with Bifrost.
76
+
77
+ ## Using Bifrost
78
+
79
+ ```py
80
+ # to be added
81
+ ```
82
+
83
+ The above example clearly demonstrates the speed, simplicity, and ease of use that Bifrost offers. Now you know what it feels like to ride with Thor!
84
+
85
+ # Installation
86
+
87
+ ```bash
88
+ pip install byfrost
89
+ ```
90
+
91
+ # Usage
92
+
93
+ If you want to learn more about how Bifrost is creating different methods to make it easier to use different cloud providers, you can follow these links:
94
+
95
+ - [Google Cloud Storage (GCS)](gcs\doc.md)
96
+ - [Amazon S3](s3\doc.md)
97
+ - [Pinata Cloud](pinata\doc.md)
98
+
99
+ # Variants
100
+
101
+ Bifrost also exists in other forms and languages and you are free to start a new variant of bifrost in any other form or language of your choice. For now, below are the know variants of bifrost.
102
+
103
+ - [x] [Bifrost in Golang](https://github.com/opensaucerer/bifrost)
104
+ - [x] [Bifrost CLI](https://github.com/showbaba/bifrost-cli)
105
+
106
+ # Contributing
107
+
108
+ Bifrost is an open source project and we welcome contributions of all kinds. Please read our [contributing guide](./contributing.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Bifrost.
109
+
110
+ # License
111
+
112
+ Bifrost is [MIT licensed](./LICENSE).
113
+
114
+ # Changelog
115
+
116
+ See [changelog](./changelog.md) for more details.
117
+
118
+ # Contributors
119
+
120
+ <a href="https://github.com/ifihan/byfrost/graphs/contributors">
121
+ <img src="https://contrib.rocks/image?repo=ifihan/byfrost" />
122
+ </a>
123
+
124
+ Made with [contrib.rocks](https://contrib.rocks).
@@ -0,0 +1,94 @@
1
+ # Bifrost
2
+
3
+ Rainbow Bridge for shipping your files to any cloud storage service with the same function calls.
4
+
5
+ <img src="https://user-images.githubusercontent.com/59074379/226159115-1cfcb221-127f-4574-87ed-b74b4b2c4591.png" width="1000" />
6
+
7
+ # Table of contents
8
+
9
+ - [Bifrost](#bifrost)
10
+ - [Problem Statement](#problem-statement)
11
+ - [Google Cloud Storage using GCS SDK](#google-cloud-storage-using-gcs-sdk)
12
+ - [Pinata Cloud using Pinata API](#pinata-cloud-using-pinata-api)
13
+ - [Using Bifrost](#using-bifrost)
14
+ - [Installation](#installation)
15
+ - [Usage](#usage)
16
+ - [Contributing](#contributing)
17
+ - [License](#license)
18
+ - [Changelog](#changelog)
19
+ - [Contributors](#contributors)
20
+
21
+ # Problem Statement
22
+
23
+ Many projects need to store files in the cloud and different projects might use different cloud storage providers or, sometimes, multiple cloud providers all at once. Using different SDKs with different implementations for each provider can be tedious and time-consuming. Bifrost aims to simplify the process of working with multiple cloud storage providers by providing a consistent API for all of them.
24
+
25
+ To gain a better understanding of how Bifrost addresses this issue, let's take you on a ride with Thor by comparing two different code samples for working with Google Cloud Storage and Pinata Cloud in a single project: one using a conventional approach and the other using Bifrost.
26
+
27
+ ## Google Cloud Storage using GCS SDK
28
+
29
+ Without Bifrost, the process of uploading a file to GCS using the Google Cloud Storage client library for Python would typically involve the following steps:
30
+
31
+ ```py
32
+ # to be added
33
+ ```
34
+
35
+ ## Pinata Cloud using Pinata API
36
+
37
+ ...and for Pinata Cloud, the usual way of uploading a file in Python would be something along the following steps:
38
+
39
+ ```py
40
+ # to be added
41
+ ```
42
+
43
+ We can already see the challenges of the conventional methods since they require you to learn to use multiple packages with separate implementation patterns. Now this is why `Bifrost` comes in! With Bifrost, you can mount rainbow bridges to the providers you want and use the same set of functions to upload files through any of these mounted bridges. This makes it much easier to work with multiple providers and streamlines the development process to just one learning curve.
44
+
45
+ Now, let's see how we can revamp the two samples above into something much more exciting with Bifrost.
46
+
47
+ ## Using Bifrost
48
+
49
+ ```py
50
+ # to be added
51
+ ```
52
+
53
+ The above example clearly demonstrates the speed, simplicity, and ease of use that Bifrost offers. Now you know what it feels like to ride with Thor!
54
+
55
+ # Installation
56
+
57
+ ```bash
58
+ pip install byfrost
59
+ ```
60
+
61
+ # Usage
62
+
63
+ If you want to learn more about how Bifrost is creating different methods to make it easier to use different cloud providers, you can follow these links:
64
+
65
+ - [Google Cloud Storage (GCS)](gcs\doc.md)
66
+ - [Amazon S3](s3\doc.md)
67
+ - [Pinata Cloud](pinata\doc.md)
68
+
69
+ # Variants
70
+
71
+ Bifrost also exists in other forms and languages and you are free to start a new variant of bifrost in any other form or language of your choice. For now, below are the know variants of bifrost.
72
+
73
+ - [x] [Bifrost in Golang](https://github.com/opensaucerer/bifrost)
74
+ - [x] [Bifrost CLI](https://github.com/showbaba/bifrost-cli)
75
+
76
+ # Contributing
77
+
78
+ Bifrost is an open source project and we welcome contributions of all kinds. Please read our [contributing guide](./contributing.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Bifrost.
79
+
80
+ # License
81
+
82
+ Bifrost is [MIT licensed](./LICENSE).
83
+
84
+ # Changelog
85
+
86
+ See [changelog](./changelog.md) for more details.
87
+
88
+ # Contributors
89
+
90
+ <a href="https://github.com/ifihan/byfrost/graphs/contributors">
91
+ <img src="https://contrib.rocks/image?repo=ifihan/byfrost" />
92
+ </a>
93
+
94
+ Made with [contrib.rocks](https://contrib.rocks).
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.1
2
+ Name: bifrostsdk
3
+ Version: 1.0.0
4
+ Summary: Rainbow Bridge for shipping your files to any cloud storage service with the same function calls
5
+ Author-email: ifihan <victoriaolusheye@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Ifihan/byfrost
8
+ Project-URL: Bug Tracker, https://github.com/Ifihan/byfrost/issues
9
+ Project-URL: Documentation, https://github.com/Ifihan/byfrost/blob/main/README.md
10
+ Project-URL: Source Code, https://github.com/Ifihan/byfrost
11
+ Keywords: cloud,storage,gcs,s3,pinata,upload,aws,google-cloud,bifrost
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Topic :: Internet
23
+ Requires-Python: >=3.8
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: google-cloud-storage>=2.5.0
27
+ Requires-Dist: boto3>=1.34.0
28
+ Requires-Dist: requests>=2.25.0
29
+ Requires-Dist: requests-toolbelt>=1.0.0
30
+
31
+ # Bifrost
32
+
33
+ Rainbow Bridge for shipping your files to any cloud storage service with the same function calls.
34
+
35
+ <img src="https://user-images.githubusercontent.com/59074379/226159115-1cfcb221-127f-4574-87ed-b74b4b2c4591.png" width="1000" />
36
+
37
+ # Table of contents
38
+
39
+ - [Bifrost](#bifrost)
40
+ - [Problem Statement](#problem-statement)
41
+ - [Google Cloud Storage using GCS SDK](#google-cloud-storage-using-gcs-sdk)
42
+ - [Pinata Cloud using Pinata API](#pinata-cloud-using-pinata-api)
43
+ - [Using Bifrost](#using-bifrost)
44
+ - [Installation](#installation)
45
+ - [Usage](#usage)
46
+ - [Contributing](#contributing)
47
+ - [License](#license)
48
+ - [Changelog](#changelog)
49
+ - [Contributors](#contributors)
50
+
51
+ # Problem Statement
52
+
53
+ Many projects need to store files in the cloud and different projects might use different cloud storage providers or, sometimes, multiple cloud providers all at once. Using different SDKs with different implementations for each provider can be tedious and time-consuming. Bifrost aims to simplify the process of working with multiple cloud storage providers by providing a consistent API for all of them.
54
+
55
+ To gain a better understanding of how Bifrost addresses this issue, let's take you on a ride with Thor by comparing two different code samples for working with Google Cloud Storage and Pinata Cloud in a single project: one using a conventional approach and the other using Bifrost.
56
+
57
+ ## Google Cloud Storage using GCS SDK
58
+
59
+ Without Bifrost, the process of uploading a file to GCS using the Google Cloud Storage client library for Python would typically involve the following steps:
60
+
61
+ ```py
62
+ # to be added
63
+ ```
64
+
65
+ ## Pinata Cloud using Pinata API
66
+
67
+ ...and for Pinata Cloud, the usual way of uploading a file in Python would be something along the following steps:
68
+
69
+ ```py
70
+ # to be added
71
+ ```
72
+
73
+ We can already see the challenges of the conventional methods since they require you to learn to use multiple packages with separate implementation patterns. Now this is why `Bifrost` comes in! With Bifrost, you can mount rainbow bridges to the providers you want and use the same set of functions to upload files through any of these mounted bridges. This makes it much easier to work with multiple providers and streamlines the development process to just one learning curve.
74
+
75
+ Now, let's see how we can revamp the two samples above into something much more exciting with Bifrost.
76
+
77
+ ## Using Bifrost
78
+
79
+ ```py
80
+ # to be added
81
+ ```
82
+
83
+ The above example clearly demonstrates the speed, simplicity, and ease of use that Bifrost offers. Now you know what it feels like to ride with Thor!
84
+
85
+ # Installation
86
+
87
+ ```bash
88
+ pip install byfrost
89
+ ```
90
+
91
+ # Usage
92
+
93
+ If you want to learn more about how Bifrost is creating different methods to make it easier to use different cloud providers, you can follow these links:
94
+
95
+ - [Google Cloud Storage (GCS)](gcs\doc.md)
96
+ - [Amazon S3](s3\doc.md)
97
+ - [Pinata Cloud](pinata\doc.md)
98
+
99
+ # Variants
100
+
101
+ Bifrost also exists in other forms and languages and you are free to start a new variant of bifrost in any other form or language of your choice. For now, below are the know variants of bifrost.
102
+
103
+ - [x] [Bifrost in Golang](https://github.com/opensaucerer/bifrost)
104
+ - [x] [Bifrost CLI](https://github.com/showbaba/bifrost-cli)
105
+
106
+ # Contributing
107
+
108
+ Bifrost is an open source project and we welcome contributions of all kinds. Please read our [contributing guide](./contributing.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Bifrost.
109
+
110
+ # License
111
+
112
+ Bifrost is [MIT licensed](./LICENSE).
113
+
114
+ # Changelog
115
+
116
+ See [changelog](./changelog.md) for more details.
117
+
118
+ # Contributors
119
+
120
+ <a href="https://github.com/ifihan/byfrost/graphs/contributors">
121
+ <img src="https://contrib.rocks/image?repo=ifihan/byfrost" />
122
+ </a>
123
+
124
+ Made with [contrib.rocks](https://contrib.rocks).
@@ -0,0 +1,54 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ bifrostsdk.egg-info/PKG-INFO
5
+ bifrostsdk.egg-info/SOURCES.txt
6
+ bifrostsdk.egg-info/dependency_links.txt
7
+ bifrostsdk.egg-info/requires.txt
8
+ bifrostsdk.egg-info/top_level.txt
9
+ byfrost/__init__.py
10
+ byfrost/__init__.pyi
11
+ byfrost/bifrost.py
12
+ byfrost/bifrost.pyi
13
+ byfrost/gcs/__init__.py
14
+ byfrost/gcs/__init__.pyi
15
+ byfrost/gcs/gcs.py
16
+ byfrost/gcs/gcs.pyi
17
+ byfrost/pinata/__init__.py
18
+ byfrost/pinata/__init__.pyi
19
+ byfrost/pinata/pinata.py
20
+ byfrost/pinata/pinata.pyi
21
+ byfrost/s3/__init__.py
22
+ byfrost/s3/__init__.pyi
23
+ byfrost/s3/s3.py
24
+ byfrost/s3/s3.pyi
25
+ byfrost/shared/__init__.py
26
+ byfrost/shared/config/__init__.py
27
+ byfrost/shared/config/__init__.pyi
28
+ byfrost/shared/config/option.py
29
+ byfrost/shared/config/provider.py
30
+ byfrost/shared/config/request.py
31
+ byfrost/shared/config/url.py
32
+ byfrost/shared/errors/__init__.py
33
+ byfrost/shared/errors/__init__.pyi
34
+ byfrost/shared/errors/color.py
35
+ byfrost/shared/errors/constant.py
36
+ byfrost/shared/errors/interface.py
37
+ byfrost/shared/errors/interface.pyi
38
+ byfrost/shared/errors/loga.py
39
+ byfrost/shared/errors/loga.pyi
40
+ byfrost/shared/request/__init__.py
41
+ byfrost/shared/request/__init__.pyi
42
+ byfrost/shared/request/builder.py
43
+ byfrost/shared/types/__init__.py
44
+ byfrost/shared/types/dataclass/__init__.py
45
+ byfrost/shared/types/dataclass/__init__.pyi
46
+ byfrost/shared/types/dataclass/bridge.py
47
+ byfrost/shared/types/dataclass/file.py
48
+ byfrost/shared/types/typeddict/__init__.py
49
+ byfrost/shared/types/typeddict/__init__.pyi
50
+ byfrost/shared/types/typeddict/bridge.py
51
+ byfrost/shared/types/typeddict/file.py
52
+ tests/test_gcs.py
53
+ tests/test_pinata.py
54
+ tests/test_s3.py
@@ -0,0 +1,4 @@
1
+ google-cloud-storage>=2.5.0
2
+ boto3>=1.34.0
3
+ requests>=2.25.0
4
+ requests-toolbelt>=1.0.0
@@ -0,0 +1 @@
1
+ byfrost
@@ -0,0 +1,46 @@
1
+ #!usr/bin/env python3
2
+
3
+ from .shared.types.dataclass.bridge import BridgeConfig, RainbowBridge
4
+ from .shared.types.dataclass.file import File, MultiFile, Options
5
+
6
+ from .shared.types.typeddict.bridge import BridgeConfigDict
7
+ from .shared.types.typeddict.file import (
8
+ OptionsDict,
9
+ FileDict,
10
+ MultiFileDict,
11
+ ParamFileDict,
12
+ ParamDataDict,
13
+ ParamDict,
14
+ UploadedFileDict,
15
+ )
16
+
17
+ from .shared.errors.constant import (
18
+ ErrBadRequest,
19
+ ErrClientError,
20
+ ErrIncompleteMultiFileUpload,
21
+ ErrInvalidBucket,
22
+ ErrInvalidConfig,
23
+ ErrInvalidCredentials,
24
+ ErrInvalidProvider,
25
+ ErrUnauthorized,
26
+ ErrFileOperationFailed,
27
+ )
28
+ from .shared.errors.interface import BifrostError
29
+ from .shared.config.provider import (
30
+ GoogleCloudStorage,
31
+ PinataCloud,
32
+ SimpleStorageService,
33
+ )
34
+
35
+ from .shared.config.option import (
36
+ OptACL,
37
+ ACLPublicRead,
38
+ ACLPrivate,
39
+ OptContentType,
40
+ OptMetadata,
41
+ OptPinata,
42
+ )
43
+
44
+ from .bifrost import new_rainbow_bridge
45
+
46
+ __name__ = "byfrost"
@@ -0,0 +1,81 @@
1
+ #!usr/bin/env python3
2
+
3
+ from .shared.types.dataclass.bridge import BridgeConfig, RainbowBridge
4
+ from .shared.types.dataclass.file import File, MultiFile, Options
5
+
6
+ from .shared.types.typeddict.bridge import BridgeConfigDict
7
+ from .shared.types.typeddict.file import (
8
+ OptionsDict,
9
+ FileDict,
10
+ MultiFileDict,
11
+ ParamFileDict,
12
+ ParamDataDict,
13
+ ParamDict,
14
+ UploadedFileDict,
15
+ )
16
+
17
+ from .shared.errors.constant import (
18
+ ErrBadRequest,
19
+ ErrClientError,
20
+ ErrIncompleteMultiFileUpload,
21
+ ErrInvalidBucket,
22
+ ErrInvalidConfig,
23
+ ErrInvalidCredentials,
24
+ ErrInvalidProvider,
25
+ ErrUnauthorized,
26
+ ErrFileOperationFailed,
27
+ )
28
+ from .shared.errors.interface import BifrostError
29
+ from .shared.config.provider import (
30
+ GoogleCloudStorage,
31
+ PinataCloud,
32
+ SimpleStorageService,
33
+ )
34
+
35
+ from .shared.config.option import (
36
+ OptACL,
37
+ ACLPublicRead,
38
+ ACLPrivate,
39
+ OptContentType,
40
+ OptMetadata,
41
+ OptPinata,
42
+ )
43
+
44
+ from .bifrost import new_rainbow_bridge
45
+
46
+ __name__ = "byfrost"
47
+ __all__ = [
48
+ "BridgeConfig",
49
+ "RainbowBridge",
50
+ "File",
51
+ "Options",
52
+ "MultiFile",
53
+ "BridgeConfigDict",
54
+ "OptionsDict",
55
+ "FileDict",
56
+ "MultiFileDict",
57
+ "ParamFileDict",
58
+ "ParamDataDict",
59
+ "ParamDict",
60
+ "UploadedFileDict",
61
+ "ErrBadRequest",
62
+ "ErrClientError",
63
+ "ErrIncompleteMultiFileUpload",
64
+ "ErrInvalidBucket",
65
+ "ErrInvalidConfig",
66
+ "ErrInvalidCredentials",
67
+ "ErrInvalidProvider",
68
+ "ErrUnauthorized",
69
+ "ErrFileOperationFailed",
70
+ "BifrostError",
71
+ "GoogleCloudStorage",
72
+ "PinataCloud",
73
+ "SimpleStorageService",
74
+ "new_rainbow_bridge",
75
+ "OptACL",
76
+ "ACLPublicRead",
77
+ "ACLPrivate",
78
+ "OptContentType",
79
+ "OptMetadata",
80
+ "OptPinata",
81
+ ]