scalekit-sdk-python 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 (82) hide show
  1. scalekit_sdk_python-1.0.0/LICENSE +21 -0
  2. scalekit_sdk_python-1.0.0/PKG-INFO +67 -0
  3. scalekit_sdk_python-1.0.0/README.md +43 -0
  4. scalekit_sdk_python-1.0.0/buf/__init__.py +0 -0
  5. scalekit_sdk_python-1.0.0/buf/validate/__init__.py +0 -0
  6. scalekit_sdk_python-1.0.0/buf/validate/expression_pb2.py +31 -0
  7. scalekit_sdk_python-1.0.0/buf/validate/expression_pb2.pyi +34 -0
  8. scalekit_sdk_python-1.0.0/buf/validate/expression_pb2_grpc.py +4 -0
  9. scalekit_sdk_python-1.0.0/buf/validate/priv/__init__.py +0 -0
  10. scalekit_sdk_python-1.0.0/buf/validate/priv/private_pb2.py +30 -0
  11. scalekit_sdk_python-1.0.0/buf/validate/priv/private_pb2.pyi +25 -0
  12. scalekit_sdk_python-1.0.0/buf/validate/priv/private_pb2_grpc.py +4 -0
  13. scalekit_sdk_python-1.0.0/buf/validate/validate_pb2.py +402 -0
  14. scalekit_sdk_python-1.0.0/buf/validate/validate_pb2.pyi +503 -0
  15. scalekit_sdk_python-1.0.0/buf/validate/validate_pb2_grpc.py +4 -0
  16. scalekit_sdk_python-1.0.0/scalekit/__init__.py +4 -0
  17. scalekit_sdk_python-1.0.0/scalekit/client.py +143 -0
  18. scalekit_sdk_python-1.0.0/scalekit/common/__init__.py +0 -0
  19. scalekit_sdk_python-1.0.0/scalekit/common/scalekit.py +49 -0
  20. scalekit_sdk_python-1.0.0/scalekit/common/user.py +75 -0
  21. scalekit_sdk_python-1.0.0/scalekit/connection.py +103 -0
  22. scalekit_sdk_python-1.0.0/scalekit/constants/__init__.py +0 -0
  23. scalekit_sdk_python-1.0.0/scalekit/constants/user.py +21 -0
  24. scalekit_sdk_python-1.0.0/scalekit/core.py +169 -0
  25. scalekit_sdk_python-1.0.0/scalekit/domain.py +73 -0
  26. scalekit_sdk_python-1.0.0/scalekit/organization.py +181 -0
  27. scalekit_sdk_python-1.0.0/scalekit/v1/__init__.py +0 -0
  28. scalekit_sdk_python-1.0.0/scalekit/v1/clients/__init__.py +0 -0
  29. scalekit_sdk_python-1.0.0/scalekit/v1/clients/clients_pb2.py +103 -0
  30. scalekit_sdk_python-1.0.0/scalekit/v1/clients/clients_pb2.pyi +156 -0
  31. scalekit_sdk_python-1.0.0/scalekit/v1/clients/clients_pb2_grpc.py +232 -0
  32. scalekit_sdk_python-1.0.0/scalekit/v1/commons/__init__.py +0 -0
  33. scalekit_sdk_python-1.0.0/scalekit/v1/commons/commons_pb2.py +36 -0
  34. scalekit_sdk_python-1.0.0/scalekit/v1/commons/commons_pb2.pyi +30 -0
  35. scalekit_sdk_python-1.0.0/scalekit/v1/commons/commons_pb2_grpc.py +4 -0
  36. scalekit_sdk_python-1.0.0/scalekit/v1/connections/__init__.py +0 -0
  37. scalekit_sdk_python-1.0.0/scalekit/v1/connections/connections_pb2.py +355 -0
  38. scalekit_sdk_python-1.0.0/scalekit/v1/connections/connections_pb2.pyi +526 -0
  39. scalekit_sdk_python-1.0.0/scalekit/v1/connections/connections_pb2_grpc.py +265 -0
  40. scalekit_sdk_python-1.0.0/scalekit/v1/domains/__init__.py +0 -0
  41. scalekit_sdk_python-1.0.0/scalekit/v1/domains/domains_pb2.py +92 -0
  42. scalekit_sdk_python-1.0.0/scalekit/v1/domains/domains_pb2.pyi +153 -0
  43. scalekit_sdk_python-1.0.0/scalekit/v1/domains/domains_pb2_grpc.py +199 -0
  44. scalekit_sdk_python-1.0.0/scalekit/v1/environments/__init__.py +0 -0
  45. scalekit_sdk_python-1.0.0/scalekit/v1/environments/environments_pb2.py +171 -0
  46. scalekit_sdk_python-1.0.0/scalekit/v1/environments/environments_pb2.pyi +241 -0
  47. scalekit_sdk_python-1.0.0/scalekit/v1/environments/environments_pb2_grpc.py +463 -0
  48. scalekit_sdk_python-1.0.0/scalekit/v1/errdetails/__init__.py +0 -0
  49. scalekit_sdk_python-1.0.0/scalekit/v1/errdetails/errdetails_pb2.py +44 -0
  50. scalekit_sdk_python-1.0.0/scalekit/v1/errdetails/errdetails_pb2.pyi +89 -0
  51. scalekit_sdk_python-1.0.0/scalekit/v1/errdetails/errdetails_pb2_grpc.py +4 -0
  52. scalekit_sdk_python-1.0.0/scalekit/v1/events/__init__.py +0 -0
  53. scalekit_sdk_python-1.0.0/scalekit/v1/events/events_pb2.py +39 -0
  54. scalekit_sdk_python-1.0.0/scalekit/v1/events/events_pb2.pyi +62 -0
  55. scalekit_sdk_python-1.0.0/scalekit/v1/events/events_pb2_grpc.py +4 -0
  56. scalekit_sdk_python-1.0.0/scalekit/v1/members/__init__.py +0 -0
  57. scalekit_sdk_python-1.0.0/scalekit/v1/members/members_pb2.py +105 -0
  58. scalekit_sdk_python-1.0.0/scalekit/v1/members/members_pb2.pyi +142 -0
  59. scalekit_sdk_python-1.0.0/scalekit/v1/members/members_pb2_grpc.py +271 -0
  60. scalekit_sdk_python-1.0.0/scalekit/v1/options/__init__.py +0 -0
  61. scalekit_sdk_python-1.0.0/scalekit/v1/options/options_pb2.py +30 -0
  62. scalekit_sdk_python-1.0.0/scalekit/v1/options/options_pb2.pyi +44 -0
  63. scalekit_sdk_python-1.0.0/scalekit/v1/options/options_pb2_grpc.py +4 -0
  64. scalekit_sdk_python-1.0.0/scalekit/v1/organizations/__init__.py +0 -0
  65. scalekit_sdk_python-1.0.0/scalekit/v1/organizations/organizations_pb2.py +168 -0
  66. scalekit_sdk_python-1.0.0/scalekit/v1/organizations/organizations_pb2.pyi +190 -0
  67. scalekit_sdk_python-1.0.0/scalekit/v1/organizations/organizations_pb2_grpc.py +301 -0
  68. scalekit_sdk_python-1.0.0/scalekit/v1/users/__init__.py +0 -0
  69. scalekit_sdk_python-1.0.0/scalekit/v1/users/users_pb2.py +97 -0
  70. scalekit_sdk_python-1.0.0/scalekit/v1/users/users_pb2.pyi +136 -0
  71. scalekit_sdk_python-1.0.0/scalekit/v1/users/users_pb2_grpc.py +199 -0
  72. scalekit_sdk_python-1.0.0/scalekit/v1/workspaces/__init__.py +0 -0
  73. scalekit_sdk_python-1.0.0/scalekit/v1/workspaces/workspaces_pb2.py +90 -0
  74. scalekit_sdk_python-1.0.0/scalekit/v1/workspaces/workspaces_pb2.pyi +102 -0
  75. scalekit_sdk_python-1.0.0/scalekit/v1/workspaces/workspaces_pb2_grpc.py +198 -0
  76. scalekit_sdk_python-1.0.0/scalekit_sdk_python.egg-info/PKG-INFO +67 -0
  77. scalekit_sdk_python-1.0.0/scalekit_sdk_python.egg-info/SOURCES.txt +80 -0
  78. scalekit_sdk_python-1.0.0/scalekit_sdk_python.egg-info/dependency_links.txt +1 -0
  79. scalekit_sdk_python-1.0.0/scalekit_sdk_python.egg-info/requires.txt +10 -0
  80. scalekit_sdk_python-1.0.0/scalekit_sdk_python.egg-info/top_level.txt +2 -0
  81. scalekit_sdk_python-1.0.0/setup.cfg +4 -0
  82. scalekit_sdk_python-1.0.0/setup.py +31 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Scalekit Inc
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,67 @@
1
+ Metadata-Version: 2.1
2
+ Name: scalekit-sdk-python
3
+ Version: 1.0.0
4
+ Summary: Scalekit official Python SDK
5
+ Home-page: https://github.com/scalekit-inc/scalekit-sdk-python
6
+ Author: Team Scalekit
7
+ Author-email: support@grpc.com
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: grpcio==1.64.0
15
+ Requires-Dist: protobuf==5.27.0
16
+ Requires-Dist: google==3.0.0
17
+ Requires-Dist: requests==2.32.2
18
+ Requires-Dist: PyJWT==2.4.0
19
+ Requires-Dist: cryptography==42.0.4
20
+ Requires-Dist: setuptools==69.2.0
21
+ Requires-Dist: grpcio-status==1.64.0
22
+ Requires-Dist: protoc-gen-openapiv2==0.0.1
23
+ Requires-Dist: googleapis-common-protos==1.56.1
24
+
25
+ <p align="center">
26
+ <a href="https://scalekit.com" target="_blank" rel="noopener noreferrer">
27
+ <picture>
28
+ <img src="https://cdn.scalekit.cloud/v1/scalekit-logo-dark.svg" height="64">
29
+ </picture>
30
+ </a>
31
+ <br/>
32
+ </p>
33
+ <h1 align="center">
34
+ Official Scalekit Python SDK
35
+ </h1>
36
+
37
+ <h4 align="center">
38
+ Scalekit helps you ship Enterprise Auth in days.
39
+
40
+ This Python SDK is a wrapper around Scalekit's REST API to help you integrate Scalekit with your Python applications.
41
+ </h4>
42
+
43
+ ## Getting Started
44
+
45
+ 1. [Sign up](https://scalekit.com) for a Scalekit account.
46
+ 2. Get your ```env_url```, ```client_id``` and ```client_secret``` from the Scalekit dashboard.
47
+
48
+ ## Installation
49
+
50
+ ```sh
51
+ pip install scalekit-sdk-python
52
+ ```
53
+
54
+ ## Usage
55
+
56
+ ```javascript
57
+ from scalekit import ScalekitClient
58
+
59
+ scalekit_client = Scalekit(env_url, client_id, client_secret)
60
+ ```
61
+
62
+ ## API Reference
63
+ See the [Scalekit API docs](https://docs.scalekit.com) for more information about the API and authentication.
64
+
65
+ ## License
66
+ This project is licensed under the **MIT license**.
67
+ See the [LICENSE](LICENSE) file for more information.
@@ -0,0 +1,43 @@
1
+ <p align="center">
2
+ <a href="https://scalekit.com" target="_blank" rel="noopener noreferrer">
3
+ <picture>
4
+ <img src="https://cdn.scalekit.cloud/v1/scalekit-logo-dark.svg" height="64">
5
+ </picture>
6
+ </a>
7
+ <br/>
8
+ </p>
9
+ <h1 align="center">
10
+ Official Scalekit Python SDK
11
+ </h1>
12
+
13
+ <h4 align="center">
14
+ Scalekit helps you ship Enterprise Auth in days.
15
+
16
+ This Python SDK is a wrapper around Scalekit's REST API to help you integrate Scalekit with your Python applications.
17
+ </h4>
18
+
19
+ ## Getting Started
20
+
21
+ 1. [Sign up](https://scalekit.com) for a Scalekit account.
22
+ 2. Get your ```env_url```, ```client_id``` and ```client_secret``` from the Scalekit dashboard.
23
+
24
+ ## Installation
25
+
26
+ ```sh
27
+ pip install scalekit-sdk-python
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ ```javascript
33
+ from scalekit import ScalekitClient
34
+
35
+ scalekit_client = Scalekit(env_url, client_id, client_secret)
36
+ ```
37
+
38
+ ## API Reference
39
+ See the [Scalekit API docs](https://docs.scalekit.com) for more information about the API and authentication.
40
+
41
+ ## License
42
+ This project is licensed under the **MIT license**.
43
+ See the [LICENSE](LICENSE) file for more information.
File without changes
File without changes
@@ -0,0 +1,31 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: buf/validate/expression.proto
4
+ # Protobuf Python Version: 5.26.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+
16
+
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x62uf/validate/expression.proto\x12\x0c\x62uf.validate\"V\n\nConstraint\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1e\n\nexpression\x18\x03 \x01(\tR\nexpression\"E\n\nViolations\x12\x37\n\nviolations\x18\x01 \x03(\x0b\x32\x17.buf.validate.ViolationR\nviolations\"\x82\x01\n\tViolation\x12\x1d\n\nfield_path\x18\x01 \x01(\tR\tfieldPath\x12#\n\rconstraint_id\x18\x02 \x01(\tR\x0c\x63onstraintId\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x17\n\x07\x66or_key\x18\x04 \x01(\x08R\x06\x66orKeyBp\n\x12\x62uild.buf.validateB\x0f\x45xpressionProtoP\x01ZGbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validateb\x06proto3')
18
+
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'buf.validate.expression_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\022build.buf.validateB\017ExpressionProtoP\001ZGbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate'
25
+ _globals['_CONSTRAINT']._serialized_start=47
26
+ _globals['_CONSTRAINT']._serialized_end=133
27
+ _globals['_VIOLATIONS']._serialized_start=135
28
+ _globals['_VIOLATIONS']._serialized_end=204
29
+ _globals['_VIOLATION']._serialized_start=207
30
+ _globals['_VIOLATION']._serialized_end=337
31
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,34 @@
1
+ from google.protobuf.internal import containers as _containers
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import message as _message
4
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
5
+
6
+ DESCRIPTOR: _descriptor.FileDescriptor
7
+
8
+ class Constraint(_message.Message):
9
+ __slots__ = ("id", "message", "expression")
10
+ ID_FIELD_NUMBER: _ClassVar[int]
11
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
12
+ EXPRESSION_FIELD_NUMBER: _ClassVar[int]
13
+ id: str
14
+ message: str
15
+ expression: str
16
+ def __init__(self, id: _Optional[str] = ..., message: _Optional[str] = ..., expression: _Optional[str] = ...) -> None: ...
17
+
18
+ class Violations(_message.Message):
19
+ __slots__ = ("violations",)
20
+ VIOLATIONS_FIELD_NUMBER: _ClassVar[int]
21
+ violations: _containers.RepeatedCompositeFieldContainer[Violation]
22
+ def __init__(self, violations: _Optional[_Iterable[_Union[Violation, _Mapping]]] = ...) -> None: ...
23
+
24
+ class Violation(_message.Message):
25
+ __slots__ = ("field_path", "constraint_id", "message", "for_key")
26
+ FIELD_PATH_FIELD_NUMBER: _ClassVar[int]
27
+ CONSTRAINT_ID_FIELD_NUMBER: _ClassVar[int]
28
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
29
+ FOR_KEY_FIELD_NUMBER: _ClassVar[int]
30
+ field_path: str
31
+ constraint_id: str
32
+ message: str
33
+ for_key: bool
34
+ def __init__(self, field_path: _Optional[str] = ..., constraint_id: _Optional[str] = ..., message: _Optional[str] = ..., for_key: bool = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
@@ -0,0 +1,30 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: buf/validate/priv/private.proto
4
+ # Protobuf Python Version: 5.26.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
16
+
17
+
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x62uf/validate/priv/private.proto\x12\x11\x62uf.validate.priv\x1a google/protobuf/descriptor.proto\"C\n\x10\x46ieldConstraints\x12/\n\x03\x63\x65l\x18\x01 \x03(\x0b\x32\x1d.buf.validate.priv.ConstraintR\x03\x63\x65l\"V\n\nConstraint\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1e\n\nexpression\x18\x03 \x01(\tR\nexpression:\\\n\x05\x66ield\x12\x1d.google.protobuf.FieldOptions\x18\x88\t \x01(\x0b\x32#.buf.validate.priv.FieldConstraintsR\x05\x66ield\x88\x01\x01\x42w\n\x17\x62uild.buf.validate.privB\x0cPrivateProtoP\x01ZLbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate/privb\x06proto3')
19
+
20
+ _globals = globals()
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'buf.validate.priv.private_pb2', _globals)
23
+ if not _descriptor._USE_C_DESCRIPTORS:
24
+ _globals['DESCRIPTOR']._loaded_options = None
25
+ _globals['DESCRIPTOR']._serialized_options = b'\n\027build.buf.validate.privB\014PrivateProtoP\001ZLbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate/priv'
26
+ _globals['_FIELDCONSTRAINTS']._serialized_start=88
27
+ _globals['_FIELDCONSTRAINTS']._serialized_end=155
28
+ _globals['_CONSTRAINT']._serialized_start=157
29
+ _globals['_CONSTRAINT']._serialized_end=243
30
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,25 @@
1
+ from google.protobuf import descriptor_pb2 as _descriptor_pb2
2
+ from google.protobuf.internal import containers as _containers
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+ FIELD_FIELD_NUMBER: _ClassVar[int]
9
+ field: _descriptor.FieldDescriptor
10
+
11
+ class FieldConstraints(_message.Message):
12
+ __slots__ = ("cel",)
13
+ CEL_FIELD_NUMBER: _ClassVar[int]
14
+ cel: _containers.RepeatedCompositeFieldContainer[Constraint]
15
+ def __init__(self, cel: _Optional[_Iterable[_Union[Constraint, _Mapping]]] = ...) -> None: ...
16
+
17
+ class Constraint(_message.Message):
18
+ __slots__ = ("id", "message", "expression")
19
+ ID_FIELD_NUMBER: _ClassVar[int]
20
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
21
+ EXPRESSION_FIELD_NUMBER: _ClassVar[int]
22
+ id: str
23
+ message: str
24
+ expression: str
25
+ def __init__(self, id: _Optional[str] = ..., message: _Optional[str] = ..., expression: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,4 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+