nikame 0.1.1__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 (178) hide show
  1. nikame-0.1.1/.github/workflows/ci.yml +37 -0
  2. nikame-0.1.1/.github/workflows/release.yml +31 -0
  3. nikame-0.1.1/.gitignore +36 -0
  4. nikame-0.1.1/CONTRIBUTING.md +50 -0
  5. nikame-0.1.1/LICENSE +190 -0
  6. nikame-0.1.1/PKG-INFO +125 -0
  7. nikame-0.1.1/README.md +84 -0
  8. nikame-0.1.1/nikame/__init__.py +3 -0
  9. nikame-0.1.1/nikame/blueprint/__init__.py +1 -0
  10. nikame-0.1.1/nikame/blueprint/engine.py +383 -0
  11. nikame-0.1.1/nikame/cli/__init__.py +1 -0
  12. nikame-0.1.1/nikame/cli/commands/__init__.py +1 -0
  13. nikame-0.1.1/nikame/cli/commands/add.py +115 -0
  14. nikame-0.1.1/nikame/cli/commands/destroy.py +91 -0
  15. nikame-0.1.1/nikame/cli/commands/diff.py +79 -0
  16. nikame-0.1.1/nikame/cli/commands/down.py +86 -0
  17. nikame-0.1.1/nikame/cli/commands/github.py +177 -0
  18. nikame-0.1.1/nikame/cli/commands/init.py +687 -0
  19. nikame-0.1.1/nikame/cli/commands/login.py +139 -0
  20. nikame-0.1.1/nikame/cli/commands/ml.py +50 -0
  21. nikame-0.1.1/nikame/cli/commands/regenerate.py +37 -0
  22. nikame-0.1.1/nikame/cli/commands/remove.py +78 -0
  23. nikame-0.1.1/nikame/cli/commands/up.py +125 -0
  24. nikame-0.1.1/nikame/cli/main.py +61 -0
  25. nikame-0.1.1/nikame/cli/wizard/__init__.py +4 -0
  26. nikame-0.1.1/nikame/cli/wizard/interactive.py +179 -0
  27. nikame-0.1.1/nikame/codegen/base.py +103 -0
  28. nikame-0.1.1/nikame/codegen/components/api_keys.py +44 -0
  29. nikame-0.1.1/nikame/codegen/components/audit_log.py +29 -0
  30. nikame-0.1.1/nikame/codegen/components/cron_jobs.py +58 -0
  31. nikame-0.1.1/nikame/codegen/components/graphql.py +68 -0
  32. nikame-0.1.1/nikame/codegen/components/grpc.py +51 -0
  33. nikame-0.1.1/nikame/codegen/components/health_check.py +30 -0
  34. nikame-0.1.1/nikame/codegen/components/mock_data.py +45 -0
  35. nikame-0.1.1/nikame/codegen/components/multi_tenancy.py +31 -0
  36. nikame-0.1.1/nikame/codegen/components/pubsub.py +29 -0
  37. nikame-0.1.1/nikame/codegen/components/rate_limiting.py +29 -0
  38. nikame-0.1.1/nikame/codegen/components/sse.py +32 -0
  39. nikame-0.1.1/nikame/codegen/components/stripe.py +35 -0
  40. nikame-0.1.1/nikame/codegen/components/vector_search.py +29 -0
  41. nikame-0.1.1/nikame/codegen/components/webhooks.py +31 -0
  42. nikame-0.1.1/nikame/codegen/components/websocket.py +31 -0
  43. nikame-0.1.1/nikame/codegen/features/__init__.py +1 -0
  44. nikame-0.1.1/nikame/codegen/features/admin.py +37 -0
  45. nikame-0.1.1/nikame/codegen/features/auth.py +48 -0
  46. nikame-0.1.1/nikame/codegen/features/background_jobs.py +88 -0
  47. nikame-0.1.1/nikame/codegen/features/email.py +37 -0
  48. nikame-0.1.1/nikame/codegen/features/file_upload.py +37 -0
  49. nikame-0.1.1/nikame/codegen/features/payments.py +37 -0
  50. nikame-0.1.1/nikame/codegen/features/profiles.py +42 -0
  51. nikame-0.1.1/nikame/codegen/features/search.py +37 -0
  52. nikame-0.1.1/nikame/codegen/ml_gateway.py +90 -0
  53. nikame-0.1.1/nikame/codegen/registry.py +135 -0
  54. nikame-0.1.1/nikame/codegen/schema_codegen.py +172 -0
  55. nikame-0.1.1/nikame/codegen/wiring.py +93 -0
  56. nikame-0.1.1/nikame/composers/__init__.py +1 -0
  57. nikame-0.1.1/nikame/composers/docker_compose.py +73 -0
  58. nikame-0.1.1/nikame/composers/kubernetes/__init__.py +5 -0
  59. nikame-0.1.1/nikame/composers/kubernetes/helm.py +91 -0
  60. nikame-0.1.1/nikame/composers/kubernetes/manifests.py +67 -0
  61. nikame-0.1.1/nikame/composers/terraform/__init__.py +14 -0
  62. nikame-0.1.1/nikame/composers/terraform/aws.py +117 -0
  63. nikame-0.1.1/nikame/composers/terraform/base.py +15 -0
  64. nikame-0.1.1/nikame/config/__init__.py +1 -0
  65. nikame-0.1.1/nikame/config/loader.py +124 -0
  66. nikame-0.1.1/nikame/config/schema.py +395 -0
  67. nikame-0.1.1/nikame/config/validator.py +122 -0
  68. nikame-0.1.1/nikame/exceptions.py +41 -0
  69. nikame-0.1.1/nikame/mlops/__init__.py +5 -0
  70. nikame-0.1.1/nikame/mlops/hardware.py +89 -0
  71. nikame-0.1.1/nikame/mlops/models.py +71 -0
  72. nikame-0.1.1/nikame/mlops/serving.py +69 -0
  73. nikame-0.1.1/nikame/modules/__init__.py +1 -0
  74. nikame-0.1.1/nikame/modules/api/__init__.py +1 -0
  75. nikame-0.1.1/nikame/modules/api/fastapi.py +559 -0
  76. nikame-0.1.1/nikame/modules/auth/__init__.py +1 -0
  77. nikame-0.1.1/nikame/modules/auth/authentik.py +81 -0
  78. nikame-0.1.1/nikame/modules/auth/keycloak.py +181 -0
  79. nikame-0.1.1/nikame/modules/auth/vault.py +69 -0
  80. nikame-0.1.1/nikame/modules/base.py +403 -0
  81. nikame-0.1.1/nikame/modules/cache/__init__.py +1 -0
  82. nikame-0.1.1/nikame/modules/cache/dragonfly.py +150 -0
  83. nikame-0.1.1/nikame/modules/cicd/__init__.py +1 -0
  84. nikame-0.1.1/nikame/modules/cicd/argocd.py +41 -0
  85. nikame-0.1.1/nikame/modules/cicd/gitea.py +66 -0
  86. nikame-0.1.1/nikame/modules/cicd/github_actions.py +89 -0
  87. nikame-0.1.1/nikame/modules/cicd/woodpecker.py +72 -0
  88. nikame-0.1.1/nikame/modules/databases/__init__.py +1 -0
  89. nikame-0.1.1/nikame/modules/databases/clickhouse.py +68 -0
  90. nikame-0.1.1/nikame/modules/databases/elasticsearch.py +76 -0
  91. nikame-0.1.1/nikame/modules/databases/mongodb.py +91 -0
  92. nikame-0.1.1/nikame/modules/databases/neo4j.py +68 -0
  93. nikame-0.1.1/nikame/modules/databases/postgres.py +324 -0
  94. nikame-0.1.1/nikame/modules/databases/qdrant.py +86 -0
  95. nikame-0.1.1/nikame/modules/databases/redis.py +152 -0
  96. nikame-0.1.1/nikame/modules/databases/timescaledb.py +70 -0
  97. nikame-0.1.1/nikame/modules/gateway/__init__.py +1 -0
  98. nikame-0.1.1/nikame/modules/gateway/nginx.py +90 -0
  99. nikame-0.1.1/nikame/modules/gateway/traefik.py +199 -0
  100. nikame-0.1.1/nikame/modules/messaging/__init__.py +1 -0
  101. nikame-0.1.1/nikame/modules/messaging/kafka.py +143 -0
  102. nikame-0.1.1/nikame/modules/messaging/nats.py +66 -0
  103. nikame-0.1.1/nikame/modules/messaging/rabbitmq.py +70 -0
  104. nikame-0.1.1/nikame/modules/messaging/redpanda.py +262 -0
  105. nikame-0.1.1/nikame/modules/messaging/temporal.py +76 -0
  106. nikame-0.1.1/nikame/modules/ml/__init__.py +1 -0
  107. nikame-0.1.1/nikame/modules/ml/downloader.py +26 -0
  108. nikame-0.1.1/nikame/modules/ml/gateway.py +33 -0
  109. nikame-0.1.1/nikame/modules/ml/llamacpp.py +44 -0
  110. nikame-0.1.1/nikame/modules/ml/ollama.py +48 -0
  111. nikame-0.1.1/nikame/modules/ml/vllm.py +56 -0
  112. nikame-0.1.1/nikame/modules/observability/__init__.py +1 -0
  113. nikame-0.1.1/nikame/modules/observability/grafana.py +179 -0
  114. nikame-0.1.1/nikame/modules/observability/loki.py +67 -0
  115. nikame-0.1.1/nikame/modules/observability/otel_collector.py +65 -0
  116. nikame-0.1.1/nikame/modules/observability/prometheus.py +181 -0
  117. nikame-0.1.1/nikame/modules/observability/tempo.py +65 -0
  118. nikame-0.1.1/nikame/modules/observability/uptime_kuma.py +61 -0
  119. nikame-0.1.1/nikame/modules/registry.py +112 -0
  120. nikame-0.1.1/nikame/modules/storage/__init__.py +1 -0
  121. nikame-0.1.1/nikame/modules/storage/minio.py +176 -0
  122. nikame-0.1.1/nikame/templates/ci_cd/github_actions/ci.yml.j2 +103 -0
  123. nikame-0.1.1/nikame/templates/codegen/components/api_keys/auth.py.j2 +27 -0
  124. nikame-0.1.1/nikame/templates/codegen/components/api_keys/router.py.j2 +15 -0
  125. nikame-0.1.1/nikame/templates/codegen/components/audit_log/model.py.j2 +28 -0
  126. nikame-0.1.1/nikame/templates/codegen/components/cron_jobs/worker.py.j2 +29 -0
  127. nikame-0.1.1/nikame/templates/codegen/components/graphql/router.py.j2 +12 -0
  128. nikame-0.1.1/nikame/templates/codegen/components/graphql/schema.py.j2 +32 -0
  129. nikame-0.1.1/nikame/templates/codegen/components/graphql/types.py.j2 +13 -0
  130. nikame-0.1.1/nikame/templates/codegen/components/grpc/server.py.j2 +24 -0
  131. nikame-0.1.1/nikame/templates/codegen/components/grpc/service.proto.j2 +26 -0
  132. nikame-0.1.1/nikame/templates/codegen/components/health_check/router.py.j2 +35 -0
  133. nikame-0.1.1/nikame/templates/codegen/components/mock_data/router.py.j2 +11 -0
  134. nikame-0.1.1/nikame/templates/codegen/components/mock_data/seed_mock.py.j2 +24 -0
  135. nikame-0.1.1/nikame/templates/codegen/components/multi_tenancy/deps.py.j2 +16 -0
  136. nikame-0.1.1/nikame/templates/codegen/components/multi_tenancy/models.py.j2 +22 -0
  137. nikame-0.1.1/nikame/templates/codegen/components/pubsub/manager.py.j2 +26 -0
  138. nikame-0.1.1/nikame/templates/codegen/components/rate_limiting/limiter.py.j2 +28 -0
  139. nikame-0.1.1/nikame/templates/codegen/components/sse/manager.py.j2 +23 -0
  140. nikame-0.1.1/nikame/templates/codegen/components/sse/router.py.j2 +15 -0
  141. nikame-0.1.1/nikame/templates/codegen/components/stripe/router.py.j2 +41 -0
  142. nikame-0.1.1/nikame/templates/codegen/components/vector_search/vector.py.j2 +36 -0
  143. nikame-0.1.1/nikame/templates/codegen/components/webhooks/router.py.j2 +19 -0
  144. nikame-0.1.1/nikame/templates/codegen/components/webhooks/security.py.j2 +14 -0
  145. nikame-0.1.1/nikame/templates/codegen/components/websocket/manager.py.j2 +27 -0
  146. nikame-0.1.1/nikame/templates/codegen/components/websocket/router.py.j2 +15 -0
  147. nikame-0.1.1/nikame/templates/codegen/schema/migration.py.j2 +36 -0
  148. nikame-0.1.1/nikame/templates/codegen/schema/model.py.j2 +55 -0
  149. nikame-0.1.1/nikame/templates/codegen/schema/router.py.j2 +99 -0
  150. nikame-0.1.1/nikame/templates/codegen/schema/schema.py.j2 +59 -0
  151. nikame-0.1.1/nikame/templates/codegen/schema/seed.py.j2 +22 -0
  152. nikame-0.1.1/nikame/templates/features/admin/admin_panel.py.j2 +17 -0
  153. nikame-0.1.1/nikame/templates/features/auth/dependencies.py.j2 +59 -0
  154. nikame-0.1.1/nikame/templates/features/auth/models.py.j2 +21 -0
  155. nikame-0.1.1/nikame/templates/features/auth/router.py.j2 +62 -0
  156. nikame-0.1.1/nikame/templates/features/auth/schemas.py.j2 +32 -0
  157. nikame-0.1.1/nikame/templates/features/auth/security.py.j2 +29 -0
  158. nikame-0.1.1/nikame/templates/features/background_jobs/celery_app.py.j2 +14 -0
  159. nikame-0.1.1/nikame/templates/features/background_jobs/tasks.py.j2 +14 -0
  160. nikame-0.1.1/nikame/templates/features/email/service.py.j2 +42 -0
  161. nikame-0.1.1/nikame/templates/features/file_upload/router.py.j2 +33 -0
  162. nikame-0.1.1/nikame/templates/features/file_upload/service.py.j2 +43 -0
  163. nikame-0.1.1/nikame/templates/features/payments/router.py.j2 +53 -0
  164. nikame-0.1.1/nikame/templates/features/payments/service.py.j2 +30 -0
  165. nikame-0.1.1/nikame/templates/features/profiles/models.py.j2 +16 -0
  166. nikame-0.1.1/nikame/templates/features/profiles/router.py.j2 +43 -0
  167. nikame-0.1.1/nikame/templates/features/profiles/schemas.py.j2 +24 -0
  168. nikame-0.1.1/nikame/templates/features/search/search_engine.py.j2 +9 -0
  169. nikame-0.1.1/nikame/utils/__init__.py +1 -0
  170. nikame-0.1.1/nikame/utils/auth.py +93 -0
  171. nikame-0.1.1/nikame/utils/docker.py +83 -0
  172. nikame-0.1.1/nikame/utils/file_writer.py +177 -0
  173. nikame-0.1.1/nikame/utils/git.py +83 -0
  174. nikame-0.1.1/nikame/utils/github_client.py +130 -0
  175. nikame-0.1.1/nikame/utils/logger.py +53 -0
  176. nikame-0.1.1/nikame/utils/templating.py +90 -0
  177. nikame-0.1.1/pyproject.toml +81 -0
  178. nikame-0.1.1/verify_prod.yaml +17 -0
@@ -0,0 +1,37 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.11", "3.12", "3.13"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python ${{ matrix.python-version }}
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+ cache: "pip"
24
+
25
+ - name: Install dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ pip install ".[dev,cloud,ml]"
29
+
30
+ - name: Lint with Ruff
31
+ run: ruff check .
32
+
33
+ - name: Check types with Mypy
34
+ run: mypy nikame
35
+
36
+ - name: Run tests
37
+ run: pytest tests/unit
@@ -0,0 +1,31 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ build-n-publish:
10
+ name: Build and publish to PyPI
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ id-token: write # Required for Trusted Publishers
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: "3.11"
23
+
24
+ - name: Install build dependencies
25
+ run: pip install hatch
26
+
27
+ - name: Build sdist and wheel
28
+ run: hatch build
29
+
30
+ - name: Publish to PyPI
31
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,36 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Virtual Environments
7
+ .venv/
8
+ venv/
9
+ ENV/
10
+ env/
11
+
12
+ .ruff_cache/
13
+
14
+ # IDEs and Editors
15
+ .vscode/
16
+ .idea/
17
+ *.swp
18
+ *.swo
19
+
20
+ # Testing / Coverage
21
+ .pytest_cache/
22
+ .coverage
23
+ htmlcov/
24
+
25
+ # Logs and databases
26
+ *.log
27
+ *.sqlite3
28
+
29
+ # Distribution / packaging
30
+ dist/
31
+ build/
32
+ *.egg-info/
33
+
34
+ # OS generated files
35
+ .DS_Store
36
+ Thumbs.db
@@ -0,0 +1,50 @@
1
+ # Contributing to NIKAME
2
+
3
+ Thank you for your interest in contributing to NIKAME! This document outlines the process for proposing changes and the standards we maintain.
4
+
5
+ ## 🛠️ Development Setup
6
+
7
+ 1. **Clone the repository**:
8
+ ```bash
9
+ git clone https://github.com/omdeepb69/nikame.git
10
+ cd nikame
11
+ ```
12
+
13
+ 2. **Create a virtual environment**:
14
+ ```bash
15
+ python -m venv .venv
16
+ source .venv/bin/activate
17
+ ```
18
+
19
+ 3. **Install dependencies**:
20
+ ```bash
21
+ pip install -e ".[dev,cloud,ml]"
22
+ pre-commit install
23
+ ```
24
+
25
+ ## 📏 Coding Standards
26
+
27
+ To maintain high code quality, NIKAME enforces strict standards:
28
+
29
+ - **Linting & Formatting**: We use `ruff` (line-length: 88).
30
+ - **Type Safety**: We use `mypy` with `--strict`.
31
+ - **Testing**: All new features must include unit tests.
32
+
33
+ Run these before opening a Pull Request:
34
+ ```bash
35
+ ruff check .
36
+ mypy nikame
37
+ pytest tests/unit
38
+ ```
39
+
40
+ ## 🚀 Pull Request Process
41
+
42
+ 1. **Branching**: Create a feature branch from `main`.
43
+ 2. **Implementation**: Ensure your code follows the standards above.
44
+ 3. **Commit Messages**: Use descriptive, imperative commit messages.
45
+ 4. **CI Checks**: Every PR triggers the primary CI workflow. All checks (lint, types, tests) **must pass** before merge.
46
+ 5. **Review**: A maintainer will review your PR. Expect feedback!
47
+
48
+ ## License
49
+
50
+ By contributing, you agree that your contributions will be licensed under the [Apache-2.0 License](LICENSE).
nikame-0.1.1/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 NIKAME Contributors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
nikame-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,125 @@
1
+ Metadata-Version: 2.4
2
+ Name: nikame
3
+ Version: 0.1.1
4
+ Summary: Describe your infrastructure. NIKAME builds it.
5
+ Author: omdeepb69
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: License :: OSI Approved :: Apache Software License
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Topic :: Software Development :: Code Generators
14
+ Classifier: Topic :: System :: Systems Administration
15
+ Requires-Python: >=3.11
16
+ Requires-Dist: anyio>=4.0
17
+ Requires-Dist: click>=8.1
18
+ Requires-Dist: docker>=7.0
19
+ Requires-Dist: httpx>=0.25
20
+ Requires-Dist: jinja2>=3.1
21
+ Requires-Dist: networkx>=3.1
22
+ Requires-Dist: pydantic>=2.0
23
+ Requires-Dist: pyyaml>=6.0
24
+ Requires-Dist: questionary>=2.0
25
+ Requires-Dist: rich>=13.0
26
+ Provides-Extra: cloud
27
+ Requires-Dist: boto3>=1.29; extra == 'cloud'
28
+ Requires-Dist: kubernetes>=28.0; extra == 'cloud'
29
+ Provides-Extra: dev
30
+ Requires-Dist: mypy>=1.7; extra == 'dev'
31
+ Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
32
+ Requires-Dist: pytest-cov>=4.1; extra == 'dev'
33
+ Requires-Dist: pytest>=7.4; extra == 'dev'
34
+ Requires-Dist: ruff>=0.1; extra == 'dev'
35
+ Requires-Dist: types-docker; extra == 'dev'
36
+ Requires-Dist: types-pyyaml; extra == 'dev'
37
+ Provides-Extra: ml
38
+ Requires-Dist: huggingface-hub>=0.19; extra == 'ml'
39
+ Requires-Dist: litellm>=1.10; extra == 'ml'
40
+ Description-Content-Type: text/markdown
41
+
42
+ # NIKAME
43
+
44
+ [![CI](https://github.com/nikame-dev/nikame/actions/workflows/ci.yml/badge.svg)](https://github.com/nikame-dev/nikame/actions/workflows/ci.yml)
45
+ [![PyPI version](https://badge.fury.io/py/nikame.svg)](https://badge.fury.io/py/nikame)
46
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
47
+
48
+ **Describe your infrastructure. NIKAME builds it.**
49
+
50
+ NIKAME is a Python-first infrastructure automation framework designed for modern engineering teams. Instead of manually writing thousands of lines of YAML and HCL, you define your high-level architecture in a single `nikame.yaml` file.
51
+
52
+ NIKAME handles the rest: generating best-practice Docker Compose files, production-grade Kubernetes manifests (complete with HPA, PDB, and NetworkPolicies), parameterized Helm charts, and cloud-ready Terraform modules.
53
+
54
+ ---
55
+
56
+ ## 🚀 Quick Start
57
+
58
+ ```bash
59
+ # Install the CLI
60
+ pip install nikame
61
+
62
+ # Initialize a project using a built-in preset
63
+ nikame init --preset saas-starter --output ./my-stack
64
+
65
+ # Jump in and start services
66
+ cd my-stack
67
+ nikame up
68
+ ```
69
+
70
+ ---
71
+
72
+ ## 🛠️ CLI Commands
73
+
74
+ | Command | Description |
75
+ |:---|:---|
76
+ | `nikame init` | Initialize a new project from a config file or preset. |
77
+ | `nikame up` | Start infrastructure services (Local: Docker Compose, Cloud: Terraform/Helm). |
78
+ | `nikame add <module>` | Add a new module (e.g., `postgres`, `qdrant`) to your active config. |
79
+ | `nikame remove <mod>` | Safely remove a module and its associated resources. |
80
+ | `nikame diff` | Detect drift between your `nikame.yaml` and the generated infra. |
81
+ | `nikame regenerate` | Refresh generated files if you've manually edited the YAML config. |
82
+ | `nikame ml pull` | Pull production-ready ML models from HuggingFace to your local cache. |
83
+ | `nikame github` | Synchronize environment secrets directly to GitHub repository secrets. |
84
+ | `nikame destroy` | Tear down all infrastructure and optionally wipe persistent volumes. |
85
+ | `nikame login` | Authenticate with NIKAME Hub for community plugins and presets. |
86
+
87
+ ---
88
+
89
+ ## 🌟 What can you build with NIKAME?
90
+
91
+ ### 1. High-Performance SaaS Starter
92
+ Generate a full-stack architecture with **FastAPI**, **PostgreSQL** (managed via RDS), **Redis** caching, and **Keycloak** for OIDC authentication. Includes **Stripe** integration skeleton and **Grafana** dashboards for business metrics out of the box.
93
+
94
+ ### 2. RAG (Retrieval-Augmented Generation) Engine
95
+ Deploy a production-ready vector search stack. NIKAME will provision **Qdrant**, an **Unstructured** worker for PDF parsing, **vLLM** for local inference, and **Celery** for background embedding jobs — all networked and secured.
96
+
97
+ ### 3. Real-Time Analytics Pipeline
98
+ Build an event-driven system using **RedPanda** (Kafka-compatible), **ClickHouse** for OLAP storage, and **Grafana** for real-time visualization. NIKAME configures the consumer groups and storage retention policies automatically.
99
+
100
+ ### 4. Enterprise-Grade API Gateway
101
+ Orchestrate **Traefik** or **Nginx** Ingress with automatic **Let's Encrypt** TLS, **Redis-backed rate limiting**, and **OpenTelemetry** tracing for every request across your microservices.
102
+
103
+ ### 5. Multi-Tenant Internal Platform
104
+ Create an internal PaaS for your team. Use NIKAME to enforce **ResourceQuotas**, **NetworkPolicies** for namespace isolation, and **Sealed Secrets** for secure GitOps workflows.
105
+
106
+ ---
107
+
108
+ ## 📦 Core Capabilities
109
+
110
+ - **Compute Optimized**: Automatically selects instance types and resource limits based on your `resource_tier`.
111
+ - **Production Hardened**: Generates HPAs, PDBs, and NetworkPolicies by default.
112
+ - **Cloud Native**: Supports one-command Terraform generation for **AWS**, **GCP**, and **Azure**.
113
+ - **MLOps Ready**: Integrated model management and serving backend selection (Ollama, vLLM, etc.).
114
+
115
+ ---
116
+
117
+ ## 🤝 Maintainer
118
+
119
+ This project is created and maintained by [@omdeepb69](https://github.com/omdeepb69). Contributions via Pull Requests are always welcome!
120
+
121
+ ---
122
+
123
+ ## License
124
+
125
+ Apache 2.0
nikame-0.1.1/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # NIKAME
2
+
3
+ [![CI](https://github.com/nikame-dev/nikame/actions/workflows/ci.yml/badge.svg)](https://github.com/nikame-dev/nikame/actions/workflows/ci.yml)
4
+ [![PyPI version](https://badge.fury.io/py/nikame.svg)](https://badge.fury.io/py/nikame)
5
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
6
+
7
+ **Describe your infrastructure. NIKAME builds it.**
8
+
9
+ NIKAME is a Python-first infrastructure automation framework designed for modern engineering teams. Instead of manually writing thousands of lines of YAML and HCL, you define your high-level architecture in a single `nikame.yaml` file.
10
+
11
+ NIKAME handles the rest: generating best-practice Docker Compose files, production-grade Kubernetes manifests (complete with HPA, PDB, and NetworkPolicies), parameterized Helm charts, and cloud-ready Terraform modules.
12
+
13
+ ---
14
+
15
+ ## 🚀 Quick Start
16
+
17
+ ```bash
18
+ # Install the CLI
19
+ pip install nikame
20
+
21
+ # Initialize a project using a built-in preset
22
+ nikame init --preset saas-starter --output ./my-stack
23
+
24
+ # Jump in and start services
25
+ cd my-stack
26
+ nikame up
27
+ ```
28
+
29
+ ---
30
+
31
+ ## 🛠️ CLI Commands
32
+
33
+ | Command | Description |
34
+ |:---|:---|
35
+ | `nikame init` | Initialize a new project from a config file or preset. |
36
+ | `nikame up` | Start infrastructure services (Local: Docker Compose, Cloud: Terraform/Helm). |
37
+ | `nikame add <module>` | Add a new module (e.g., `postgres`, `qdrant`) to your active config. |
38
+ | `nikame remove <mod>` | Safely remove a module and its associated resources. |
39
+ | `nikame diff` | Detect drift between your `nikame.yaml` and the generated infra. |
40
+ | `nikame regenerate` | Refresh generated files if you've manually edited the YAML config. |
41
+ | `nikame ml pull` | Pull production-ready ML models from HuggingFace to your local cache. |
42
+ | `nikame github` | Synchronize environment secrets directly to GitHub repository secrets. |
43
+ | `nikame destroy` | Tear down all infrastructure and optionally wipe persistent volumes. |
44
+ | `nikame login` | Authenticate with NIKAME Hub for community plugins and presets. |
45
+
46
+ ---
47
+
48
+ ## 🌟 What can you build with NIKAME?
49
+
50
+ ### 1. High-Performance SaaS Starter
51
+ Generate a full-stack architecture with **FastAPI**, **PostgreSQL** (managed via RDS), **Redis** caching, and **Keycloak** for OIDC authentication. Includes **Stripe** integration skeleton and **Grafana** dashboards for business metrics out of the box.
52
+
53
+ ### 2. RAG (Retrieval-Augmented Generation) Engine
54
+ Deploy a production-ready vector search stack. NIKAME will provision **Qdrant**, an **Unstructured** worker for PDF parsing, **vLLM** for local inference, and **Celery** for background embedding jobs — all networked and secured.
55
+
56
+ ### 3. Real-Time Analytics Pipeline
57
+ Build an event-driven system using **RedPanda** (Kafka-compatible), **ClickHouse** for OLAP storage, and **Grafana** for real-time visualization. NIKAME configures the consumer groups and storage retention policies automatically.
58
+
59
+ ### 4. Enterprise-Grade API Gateway
60
+ Orchestrate **Traefik** or **Nginx** Ingress with automatic **Let's Encrypt** TLS, **Redis-backed rate limiting**, and **OpenTelemetry** tracing for every request across your microservices.
61
+
62
+ ### 5. Multi-Tenant Internal Platform
63
+ Create an internal PaaS for your team. Use NIKAME to enforce **ResourceQuotas**, **NetworkPolicies** for namespace isolation, and **Sealed Secrets** for secure GitOps workflows.
64
+
65
+ ---
66
+
67
+ ## 📦 Core Capabilities
68
+
69
+ - **Compute Optimized**: Automatically selects instance types and resource limits based on your `resource_tier`.
70
+ - **Production Hardened**: Generates HPAs, PDBs, and NetworkPolicies by default.
71
+ - **Cloud Native**: Supports one-command Terraform generation for **AWS**, **GCP**, and **Azure**.
72
+ - **MLOps Ready**: Integrated model management and serving backend selection (Ollama, vLLM, etc.).
73
+
74
+ ---
75
+
76
+ ## 🤝 Maintainer
77
+
78
+ This project is created and maintained by [@omdeepb69](https://github.com/omdeepb69). Contributions via Pull Requests are always welcome!
79
+
80
+ ---
81
+
82
+ ## License
83
+
84
+ Apache 2.0
@@ -0,0 +1,3 @@
1
+ """NIKAME — Describe your infrastructure. NIKAME builds it."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1 @@
1
+ """NIKAME blueprint engine."""