worqhat 1.0__py3-none-any.whl → 3.0.0a4__py3-none-any.whl

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 (60) hide show
  1. worqhat/__init__.py +90 -10
  2. worqhat/_base_client.py +1992 -0
  3. worqhat/_client.py +467 -0
  4. worqhat/_compat.py +219 -0
  5. worqhat/_constants.py +14 -0
  6. worqhat/_exceptions.py +108 -0
  7. worqhat/_files.py +123 -0
  8. worqhat/_models.py +829 -0
  9. worqhat/_qs.py +150 -0
  10. worqhat/_resource.py +43 -0
  11. worqhat/_response.py +830 -0
  12. worqhat/_streaming.py +333 -0
  13. worqhat/_types.py +219 -0
  14. worqhat/_utils/__init__.py +57 -0
  15. worqhat/_utils/_logs.py +25 -0
  16. worqhat/_utils/_proxy.py +65 -0
  17. worqhat/_utils/_reflection.py +42 -0
  18. worqhat/_utils/_resources_proxy.py +24 -0
  19. worqhat/_utils/_streams.py +12 -0
  20. worqhat/_utils/_sync.py +86 -0
  21. worqhat/_utils/_transform.py +447 -0
  22. worqhat/_utils/_typing.py +151 -0
  23. worqhat/_utils/_utils.py +422 -0
  24. worqhat/_version.py +4 -0
  25. worqhat/lib/.keep +4 -0
  26. worqhat/resources/__init__.py +33 -0
  27. worqhat/resources/flows.py +223 -0
  28. worqhat/resources/health.py +143 -0
  29. worqhat/types/__init__.py +8 -0
  30. worqhat/types/flow_retrieve_metrics_params.py +25 -0
  31. worqhat/types/flow_retrieve_metrics_response.py +55 -0
  32. worqhat/types/health_check_response.py +33 -0
  33. worqhat/types/retrieve_server_info_response.py +15 -0
  34. worqhat-3.0.0a4.dist-info/METADATA +398 -0
  35. worqhat-3.0.0a4.dist-info/RECORD +38 -0
  36. {worqhat-1.0.dist-info → worqhat-3.0.0a4.dist-info}/WHEEL +1 -2
  37. {worqhat-1.0.dist-info → worqhat-3.0.0a4.dist-info/licenses}/LICENSE +201 -201
  38. worqhat/ai_models/__init__.py +0 -9
  39. worqhat/ai_models/ai_search.py +0 -41
  40. worqhat/ai_models/content_mod.py +0 -44
  41. worqhat/ai_models/image_analysis.py +0 -94
  42. worqhat/ai_models/image_gen.py +0 -281
  43. worqhat/ai_models/model_train.py +0 -45
  44. worqhat/ai_models/text_extract.py +0 -83
  45. worqhat/ai_models/text_gen.py +0 -177
  46. worqhat/database_management/Edit.py +0 -140
  47. worqhat/database_management/Read.py +0 -152
  48. worqhat/database_management/__init__.py +0 -5
  49. worqhat/database_management/collection.py +0 -25
  50. worqhat/test/test_ai_search.py +0 -38
  51. worqhat/test/test_content_mod.py +0 -39
  52. worqhat/test/test_image_analysis.py +0 -52
  53. worqhat/test/test_image_gen.py +0 -0
  54. worqhat/test/test_model_train.py +0 -52
  55. worqhat/test/test_text_extract.py +0 -65
  56. worqhat/test/test_text_gen.py +0 -66
  57. worqhat-1.0.dist-info/METADATA +0 -127
  58. worqhat-1.0.dist-info/RECORD +0 -26
  59. worqhat-1.0.dist-info/top_level.txt +0 -1
  60. /worqhat/{test/__init__.py → py.typed} +0 -0
@@ -1,127 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: worqhat
3
- Version: 1.0
4
- Summary: A package with all the APIs available from worqHat
5
- Home-page: https://github.com/Ayush-Kul/worqhat-python
6
- Author: WorqHat
7
- Author-email: support@worqhat.com
8
- License: MIT
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3.10
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.10
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Provides-Extra: dev
16
- Requires-Dist: pytest >=7.0 ; extra == 'dev'
17
- Requires-Dist: twine >=4.0.2 ; extra == 'dev'
18
-
19
- # WorqHat Python Library
20
-
21
- The worqhat package is a comprehensive library that allows developers to interact with the WorqHat API. It provides a simple and intuitive interface to access various AI services such as content generation, image generation,text extraction,image analysis and much more. It includes ready-made functions for both AI models and the Database.
22
-
23
- This library provides convenient access to the WorqHat APIs from Python.
24
-
25
- To learn how to use the WorqHat APIs,check out our [API Reference](https://docs.worqhat.com/api-reference/authentication)
26
- and [Documentation](https://docs.worqhat.com/introduction)
27
-
28
- ## Table of Contents
29
-
30
- - [Worqhat Python Library](#worqhat-python-library)
31
- - [Table of Contents](#table-of-contents)
32
- - [Installation](#installation)
33
- - [Usage](#usage)
34
- - [Importing Worqhat library](#importing-worqhat-library)
35
- - [Initializing Worqhat library](#initializing-worqhat-library)
36
- - [Verifying User Profile](#verifying-user-profile)
37
- - [Sample Functions](#sample-functions)
38
- - [Content Moderation with AiCon V2](#content-moderation-with-aicon-v2)
39
- - [Image Analysis with AiCon V2](#image-analysis-with-aicon-v2)
40
- - [Documentation](#documentation)
41
- - [License](#license)
42
- - [Contributing](#contributing)
43
- - [Support](#support)
44
-
45
- ## Installation
46
-
47
- You can install the Worqhat Python Library via pip:
48
-
49
- ```bash
50
- pip install worqhat
51
- ```
52
-
53
- ## Usage
54
-
55
- ### Importing Worqhat Libary
56
-
57
- ```python
58
- import worqhat
59
- ```
60
-
61
- ### Initializing Worqhat Library
62
-
63
- To use the WorqHat library you need to create a .env file which will look like
64
-
65
- ```
66
- API_KEY="Your API-KEY"
67
- ```
68
-
69
- You will also need to install and import python-dotenv library and use a load_dotenv object
70
-
71
- ```bash
72
- pip install python-dotenv
73
- ```
74
-
75
- ```python
76
- from dotenv import load_dotenv
77
-
78
- load_dotenv()
79
- ```
80
-
81
- You can also pass the API_KEY as a parameter to the functions of the library.
82
-
83
- ### Sample Functions
84
-
85
- #### Content Moderation with AiCon V2
86
-
87
- ```python
88
- from worqhat.ai_models import content_mod
89
- from dotenv import load_dotenv
90
- load_dotenv()
91
- images=["orange.png"]
92
- r=content_mod.content_moderation("Hi! How are you")
93
- print(r)
94
-
95
- ```
96
-
97
- #### Image Analysis with AiCon V2
98
-
99
- ```python
100
- from worqhat import analyze_images
101
- from dotenv import load_dotenv
102
- load_dotenv()
103
- images=["path-to-image-1","path-to-image-2"]
104
- r=analyze_images(images,"What is this")
105
- print(r)
106
- ```
107
-
108
- ## Documentation
109
-
110
- For detailed documentation, please visit our [official documentation](https://docs.worqhat.com).
111
-
112
- ## License
113
-
114
- This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
115
-
116
- ## Contributing
117
-
118
- We welcome contributions from the community. Please read our contributing guidelines for more information.
119
-
120
- ## Support
121
-
122
- If you encounter any issues or have any questions, please file an issue on our [GitHub issues page](https://github.com/Ayush-Kul/worqhat-python/issues).
123
-
124
- ```
125
-
126
- This README provides installation instructions, usage examples, links to documentation and license information, as well as details on how to contribute and seek support. Adjust the placeholders (such as `"your-api-key"`, etc.) with your actual values and add more content or sections as needed.
127
- ```
@@ -1,26 +0,0 @@
1
- worqhat/__init__.py,sha256=uwyCN0SdbB-pdq0e-LeYuD9pWcn-WZR6NSER5jjNdoQ,390
2
- worqhat/ai_models/__init__.py,sha256=gP8kLM56glAEqLSk_XKluD7oGzGoXy3ARwyppAwcUUk,307
3
- worqhat/ai_models/ai_search.py,sha256=G0GWLMYqF40XpH64HKOmVaslANePmvtGUmmqvv7e5rc,1513
4
- worqhat/ai_models/content_mod.py,sha256=R8LsfejAJrR7dghBgP3baHygFG3nWwH2DqqiCmmJnK0,1594
5
- worqhat/ai_models/image_analysis.py,sha256=W8Jvnc1JvuAj51aol30te6Dr0jVvHAgRVXsVJmqVXF0,4096
6
- worqhat/ai_models/image_gen.py,sha256=t3UGWpLB-ACJjHxXj7fqk8Z3gpJOV9S92G0eINpiCh4,10543
7
- worqhat/ai_models/model_train.py,sha256=7JClz73ILoXwgLsoe3Se5TOeAEyZg7ccJOpeksaRJSY,1805
8
- worqhat/ai_models/text_extract.py,sha256=HWb21hbJX-NVHnCY92x2stx4ophWfOJjTniuHAR2zz4,3180
9
- worqhat/ai_models/text_gen.py,sha256=S5SNubSeUGZRelu3gZVDRNgRSkgNMDhTbBJzBbL5m0k,6493
10
- worqhat/database_management/Edit.py,sha256=Mv1PPhQbtTD4KdeEgzTSJZCT7xvssYgPov0toiwy_RQ,4509
11
- worqhat/database_management/Read.py,sha256=Xd7-pbGMq1sxBEj1akA1N2sBtZjYXkeoyHKXe4bA_tc,5143
12
- worqhat/database_management/__init__.py,sha256=sjC1MgDJXVOjMWx7QAXQLegfD-53HFF9zCNSZt9kte8,111
13
- worqhat/database_management/collection.py,sha256=wkQl84Y-JZeJlyV5ZYhmNjjohwWvszkWAohBazkPKcc,815
14
- worqhat/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- worqhat/test/test_ai_search.py,sha256=zE4KDYG8XErrkPPnXEJAbhPs4F2Sq4J3AOq3Ar1AyeE,1406
16
- worqhat/test/test_content_mod.py,sha256=GPCSjvrtybVMAPtfSOKrX4Ibaybd23Qly3MK9QIfdJ0,1518
17
- worqhat/test/test_image_analysis.py,sha256=iLqUhxvcQ049CbLS-1RS8Yz0lc3Hyqdq2Fv084TTij0,2217
18
- worqhat/test/test_image_gen.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- worqhat/test/test_model_train.py,sha256=cfcFwjPx-B5UD87ALAc2HNI9iGbZIS_wO73XYCt-LJQ,2158
20
- worqhat/test/test_text_extract.py,sha256=oohuu2MG4YIGJEzbSmy5NsF0Kx5OCYMn85ueoXNriaU,2693
21
- worqhat/test/test_text_gen.py,sha256=PkfZOvdPVJ79nPuftKg11rsDCnAt-nkNOKedWZ-xCVs,2783
22
- worqhat-1.0.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
23
- worqhat-1.0.dist-info/METADATA,sha256=l9kEskM4KaN6FsiUnpEGCoNUJGrecLu2YDuOv7Z_QUo,3872
24
- worqhat-1.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
25
- worqhat-1.0.dist-info/top_level.txt,sha256=7PUf-CeYyg_J3CpNHqxwUFB-rmC4F7Yote1-w3w4tfQ,8
26
- worqhat-1.0.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- worqhat
File without changes