raqeb-cli 1.0.0__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.
raqeb_cli/__init__.py ADDED
@@ -0,0 +1,5 @@
1
+ """Raqeb CLI - Command-line tool for Database PAM and Developer Secrets Management."""
2
+
3
+ __version__ = "1.0.0"
4
+ __author__ = "Tzamun Arabia IT Co"
5
+ __email__ = "support@tzamun.sa"
raqeb_cli/cli.py ADDED
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Raqeb CLI - Python wrapper for the Node.js CLI
4
+ This wrapper ensures Node.js CLI is installed and delegates all commands to it.
5
+ """
6
+
7
+ import subprocess
8
+ import sys
9
+ import os
10
+ import shutil
11
+
12
+ def check_nodejs():
13
+ """Check if Node.js is installed."""
14
+ if not shutil.which('node'):
15
+ print("Error: Node.js is required but not installed.")
16
+ print("Please install Node.js from https://nodejs.org/")
17
+ sys.exit(1)
18
+
19
+ def check_npm():
20
+ """Check if npm is installed."""
21
+ if not shutil.which('npm'):
22
+ print("Error: npm is required but not installed.")
23
+ print("Please install Node.js (includes npm) from https://nodejs.org/")
24
+ sys.exit(1)
25
+
26
+ def install_raqeb_cli():
27
+ """Install the actual raqeb-cli via npm if not already installed."""
28
+ try:
29
+ # Check if raqeb command exists
30
+ result = subprocess.run(['which', 'raqeb'], capture_output=True)
31
+ if result.returncode != 0:
32
+ print("Installing raqeb-cli via npm...")
33
+ subprocess.run(['npm', 'install', '-g', 'raqeb-cli'], check=True)
34
+ print("✓ raqeb-cli installed successfully!")
35
+ except subprocess.CalledProcessError as e:
36
+ print(f"Error installing raqeb-cli: {e}")
37
+ sys.exit(1)
38
+
39
+ def main():
40
+ """Main entry point - delegates to Node.js CLI."""
41
+ # Check prerequisites
42
+ check_nodejs()
43
+ check_npm()
44
+ install_raqeb_cli()
45
+
46
+ # Delegate to the actual raqeb CLI
47
+ try:
48
+ # Pass all arguments to the Node.js CLI
49
+ result = subprocess.run(['raqeb'] + sys.argv[1:])
50
+ sys.exit(result.returncode)
51
+ except KeyboardInterrupt:
52
+ print("\nInterrupted by user")
53
+ sys.exit(130)
54
+ except Exception as e:
55
+ print(f"Error running raqeb: {e}")
56
+ sys.exit(1)
57
+
58
+ if __name__ == '__main__':
59
+ main()
@@ -0,0 +1,73 @@
1
+ Metadata-Version: 2.4
2
+ Name: raqeb-cli
3
+ Version: 1.0.0
4
+ Summary: Raqeb CLI - Command-line tool for Database PAM and Developer Secrets Management
5
+ Home-page: https://github.com/Tzamun-Arabia-IT-Co/raqeb-cli
6
+ Author: Tzamun Arabia IT Co
7
+ Author-email: Tzamun Arabia IT Co <support@tzamun.sa>
8
+ License: MIT
9
+ Project-URL: Homepage, https://raqeb.cloud
10
+ Project-URL: Documentation, https://docs.raqeb.cloud
11
+ Project-URL: Repository, https://github.com/Tzamun-Arabia-IT-Co/raqeb-cli
12
+ Keywords: pam,security,secrets,database,credentials,cli
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Requires-Python: >=3.7
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Dynamic: author
21
+ Dynamic: home-page
22
+ Dynamic: license-file
23
+ Dynamic: requires-python
24
+
25
+ # Raqeb CLI
26
+
27
+ Command-line tool for **Raqeb Privileged Access Management (PAM)** platform.
28
+
29
+ ## Features
30
+
31
+ - 🔐 **Database PAM**: Get temporary database credentials
32
+ - 🔑 **Secrets Management**: Securely retrieve secrets
33
+ - 🚀 **Service Accounts**: Programmatic API access
34
+ - 📊 **Audit Logs**: Track all access activities
35
+ - 🔒 **Zero Trust**: Dynamic credentials with auto-expiration
36
+
37
+ ## Installation
38
+
39
+ ```bash
40
+ pip install raqeb-cli
41
+ ```
42
+
43
+ **Requirements:** Node.js 14+ (automatically installed via npm)
44
+
45
+ ## Quick Start
46
+
47
+ ```bash
48
+ # Login to Raqeb
49
+ raqeb login
50
+
51
+ # Get temporary database credentials
52
+ raqeb db connect <database-id> --ttl 2
53
+
54
+ # Retrieve a secret
55
+ raqeb secrets get <secret-name>
56
+
57
+ # View audit logs
58
+ raqeb audit list
59
+ ```
60
+
61
+ ## Documentation
62
+
63
+ Full documentation: https://docs.raqeb.cloud
64
+
65
+ ## Support
66
+
67
+ - Website: https://raqeb.cloud
68
+ - Email: support@tzamun.sa
69
+ - GitHub: https://github.com/Tzamun-Arabia-IT-Co/raqeb-cli
70
+
71
+ ## License
72
+
73
+ MIT License - Copyright (c) 2026 Tzamun Arabia IT Co
@@ -0,0 +1,7 @@
1
+ raqeb_cli/__init__.py,sha256=_X7s_z3ZNYi4tIPzXEDjONIqXZV304Ocn0oLRomoVy8,177
2
+ raqeb_cli/cli.py,sha256=NNegvOeDZHw3QdgwbV1VPEygfeOoY_VAhrkgSbPnbYw,1832
3
+ raqeb_cli-1.0.0.dist-info/licenses/LICENSE,sha256=2LewG2wasBV-tL--Z8WSIGym2QiLFDZYIoYwkN31h1w,1076
4
+ raqeb_cli-1.0.0.dist-info/METADATA,sha256=PBlkkTbj37TYEPdhvdmJkL9cdbqtJw-20ZLW8QSbdEk,1867
5
+ raqeb_cli-1.0.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
6
+ raqeb_cli-1.0.0.dist-info/top_level.txt,sha256=W2gjX-iZqo4qzF4YG13CDZj_I6yWMt9E7UoTKs6qASE,10
7
+ raqeb_cli-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tzamun Arabia IT Co
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 @@
1
+ raqeb_cli