Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
66433f4
Pre-release version. Errors contained
ceoweggo May 12, 2025
409e8df
Git ignore added
ceoweggo May 14, 2025
6d1bbeb
SSO lib added
ceoweggo May 14, 2025
eec1e9c
Translation, README and CONTRIBUTING modified. Trying Discord impleme…
ceoweggo May 14, 2025
e980c85
Discord community updated in CONTRIBUTING
ceoweggo May 14, 2025
2bd87ed
CONTRIBUTING file modified
ceoweggo May 14, 2025
0ad1714
Add docs
Emilia206 May 16, 2025
4bde633
Add path to sphinx
Emilia206 May 16, 2025
c9eb503
Documentation working
Emilia206 May 16, 2025
599d1b2
Added CLI argument for API key creation
KarixD2137 May 19, 2025
b1ad3b6
New commands added
barto3214 May 19, 2025
c25c0e5
Added CLI argument for API key creation
KarixD2137 May 20, 2025
1025f5b
Added CLI argument for API key creation - fixed imports
KarixD2137 May 20, 2025
cdeba41
test connection func added
barto3214 May 20, 2025
3e17b17
Changed theme of docs
Emilia206 May 20, 2025
b52c1be
Merge branch 'ceoweggo:pre-release-v0.2.0' into pre-release-v0.2.0
Emilia206 May 20, 2025
d4c20f9
Add translations to inline docs in cli and config
Stasieniek120 May 20, 2025
45ea70b
Merge branch 'pre-release-v0.2.0' of https://github.com/Stasieniek120…
Stasieniek120 May 20, 2025
53a71ce
Fix the issue with wrong import
Vapniak May 20, 2025
0a952fc
Merge pull request #10 from Vapniak/pre-release-v0.2.0
Vapniak May 20, 2025
6dd2473
Add translations to config, core, db
Stasieniek120 May 20, 2025
cfee121
Add setup scripts
PedroP31 May 20, 2025
4413de1
Merge branch 'pre-release-v0.2.0' of https://github.com/PedroP31/Core…
PedroP31 May 20, 2025
7ec5d5d
Add translations to all scripts
Stasieniek120 May 20, 2025
855bb3e
Add translations to all scripts
Stasieniek120 May 20, 2025
81edc9d
Added extenions
Emilia206 May 20, 2025
df542cb
Merge pull request #12 from PedroP31/pre-release-v0.2.0
ceoweggo May 20, 2025
7e4a897
Merge pull request #9 from Emilia206/pre-release-v0.2.0
ceoweggo May 20, 2025
bc17917
Merge pull request #13 from Stasieniek120/pre-release-v0.2.0
ceoweggo May 20, 2025
9334dc4
Add extensions to dependencies in pyprojectm.toml
Emilia206 May 21, 2025
859c711
Added custom.css
Emilia206 May 21, 2025
1c45ea2
Updated custom.css
Emilia206 May 21, 2025
c893951
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
ceoweggo May 22, 2025
001c022
Authentication with SSO was splitted. Argument to create user and api…
ceoweggo May 22, 2025
e0b677e
Merge branch 'ceoweggo:pre-release-v0.2.0' into pre-release-v0.2.0
Emilia206 May 22, 2025
84edef3
Updated development installation instructions in README.md
Kaesper13 May 22, 2025
945a3da
Add csharp wrappers
Vapniak May 22, 2025
5ed16d6
Add wrappers
Vapniak May 22, 2025
1519cf4
Added css
Emilia206 May 22, 2025
e0dc4d3
Finish merge
Kaesper13 May 22, 2025
9196f2b
Merge branch 'pre-release-v0.2.0' of https://github.com/Emilia206/Cor…
Kaesper13 May 22, 2025
eb50a36
Add: CLI-UI, --gui command, wrappers for csharp and csharp_cli_api
Luki20091 May 22, 2025
4133b91
SSO remote authentication modified in corebrain/cli/common
ceoweggo May 22, 2025
e14db41
Merge branch 'ceoweggo:pre-release-v0.2.0' into pre-release-v0.2.0
Emilia206 May 22, 2025
00239a2
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Luki20091 May 22, 2025
791676b
Merge branch 'pre-release-v0.2.0' of https://github.com/Emilia206/Cor…
Kaesper13 May 22, 2025
79d148f
Add new commands
BartekPachniak May 22, 2025
fd371c8
Merge branch 'pre-release-v0.2.0' of https://github.com/BartekPachnia…
BartekPachniak May 22, 2025
4ec3c9d
Merge pull request #1 from Luki20091/pre-release-v0.2.0
Vapniak May 22, 2025
79196b2
Merge pull request #16 from BartekPachniak/pre-release-v0.2.0
ceoweggo May 23, 2025
ee29c69
Merge pull request #17 from Vapniak/pre-release-v0.2.0
ceoweggo May 23, 2025
26d3b1a
Added CLI argument for API key creation
KarixD2137 May 23, 2025
69963ac
Merge remote-tracking branch 'upstream/pre-release-v0.2.0' into featu…
KarixD2137 May 23, 2025
17ef7d5
adding nosql.py module and edit the __init__.py
Pawel-Wasilewski May 23, 2025
d95f874
,
Pawel-Wasilewski May 23, 2025
cb5b1fd
minor changes
Pawel-Wasilewski May 23, 2025
503c459
minor fixes
Pawel-Wasilewski May 23, 2025
518c6e6
Added CLI argument for API key creation - finally working
KarixD2137 May 23, 2025
e2d62f8
Added CLI argument for API key creation - finally working
KarixD2137 May 23, 2025
2185c8a
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Stasieniek120 May 23, 2025
d50fc80
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Kaesper13 May 23, 2025
f6da2fe
Complete commands
BartekPachniak May 23, 2025
b54b59e
Add documentation to C#
Stasieniek120 May 23, 2025
6ebc98c
restructurezation of NoSQL
Pawel-Wasilewski May 26, 2025
1c09708
NoSQL Restructurization
palstr May 26, 2025
82a6489
update
Pawel-Wasilewski May 26, 2025
81b8c1c
Merge branch 'pre-release-v0.2.0' of https://github.com/Pawel-Wasilew…
Pawel-Wasilewski May 26, 2025
768d6f1
Fixed Indentation Problem
palstr May 26, 2025
bdad98f
completed restructurization of nosql.py and created subconnectors/nos…
Pawel-Wasilewski May 26, 2025
8bbcc7b
completed restructurization of nosql.py and created subconnectors/nos…
Pawel-Wasilewski May 26, 2025
7944d32
--show-schema, --remove-config and --extract-schema will be move into…
ceoweggo May 26, 2025
04a0aba
Some comments traslated to English. Version changed to 0.2.0
ceoweggo May 26, 2025
3a82901
--output-file and --config-id commands will be moved into --list-conf…
ceoweggo May 26, 2025
af77c16
minor fixes in _process_codument_for_serialization
Pawel-Wasilewski May 26, 2025
b6311ea
--check-status command was modified to check every requirements in th…
ceoweggo May 26, 2025
6eced9f
Manager.py in Config was translated to English
ceoweggo May 26, 2025
d77c62d
Replaced MongoDBConnector with NoSQLConnector
palstr May 26, 2025
6baf62b
minor fixes
Pawel-Wasilewski May 26, 2025
800ffd5
Replaced MongoDBConnector with NoSQLConnector
palstr May 26, 2025
f68abaf
Replaced MongoDBConnector with NoSQLConnector
palstr May 26, 2025
251a23e
Merge remote-tracking branch 'upstream/pre-release-v0.2.0' into pre-r…
Pawel-Wasilewski May 26, 2025
abecc23
Show shcema added into configure or list configs arguments. Pending t…
ceoweggo May 26, 2025
206813c
Merging with pre-release-verison
KarixD2137 May 26, 2025
74200fc
args.remove_config deleted from args.configure in cli/commands
ceoweggo May 26, 2025
1c1cf81
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Kaesper13 May 26, 2025
b11adac
Some comments added and commands deleted
ceoweggo May 26, 2025
0eb5a45
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Kaesper13 May 26, 2025
f1abf55
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Stasieniek120 May 26, 2025
b78024f
Merge branch 'ceoweggo:pre-release-v0.2.0' into pre-release-v0.2.0
BartekPachniak May 26, 2025
b00c495
Test connection will be moved into --list-configs to test the configu…
ceoweggo May 26, 2025
671dfe2
People working on list configs. ** Pending pull request. This command…
ceoweggo May 26, 2025
58c4486
Merge branch 'ceoweggo:pre-release-v0.2.0' into pre-release-v0.2.0
BartekPachniak May 26, 2025
567419a
Merge pull request #21 from Stasieniek120/pre-release-v0.2.0
ceoweggo May 26, 2025
769849d
Merge branches 'pre-release-v0.2.0' and 'pre-release-v0.2.0' of https…
b-krol May 26, 2025
706c446
Merge remote-tracking branch 'upstream/pre-release-v0.2.0' into pre-r…
Pawel-Wasilewski May 26, 2025
316f9ec
Merge pull request #34 from Pawel-Wasilewski/pre-release-v0.2.0
ceoweggo May 26, 2025
c6a632a
Remove commands and add new
BartekPachniak May 26, 2025
4048444
mongodb.py connector moved into NoSQL folder inside of connectors
ceoweggo May 26, 2025
3ec27ac
Add translations to commands
Stasieniek120 May 26, 2025
1cf9561
Merge
Stasieniek120 May 26, 2025
c53cd46
Merge branch 'pre-release-v0.2.0' into pre-release-v0.2.0
ceoweggo May 26, 2025
56181e3
Merge pull request #35 from BartekPachniak/pre-release-v0.2.0
ceoweggo May 26, 2025
1d73b71
FIles translated to English.
ceoweggo May 26, 2025
cf22c83
Merge pull request #36 from Stasieniek120/pre-release-v0.2.0
ceoweggo May 26, 2025
ec7d930
Translations merged.
ceoweggo May 26, 2025
3fac1ed
Duplicated files and wrong structure organized fixed. Error in --conf…
ceoweggo May 26, 2025
cb81516
Merging with main branch
KarixD2137 May 27, 2025
a6a4c1a
Adding list configurations...
Bunny70pl May 27, 2025
8397e7d
Any changes
Bunny70pl May 27, 2025
9d70621
Added remove, active and list functions about configuration
Bunny70pl May 27, 2025
f5ff10c
API key creation - fixed compatibility with merged code
KarixD2137 May 27, 2025
00ceb17
fixing comments
PedroP31 May 27, 2025
2abb5e1
Merge pull request #37 from PedroP31/pre-release-v0.2.0
Vapniak May 27, 2025
74247cf
Add translations to commands
Stasieniek120 May 27, 2025
d70f984
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Stasieniek120 May 27, 2025
e3de08a
Merge pull request #38 from Stasieniek120/pre-release-v0.2.0
ceoweggo May 27, 2025
1db210c
Pyproject error fixed.
ceoweggo May 27, 2025
9c779d1
Add installation instruction to include submodules
Vapniak May 27, 2025
c018818
Update submodule reference
ceoweggo May 27, 2025
1f21806
Merge branch 'pre-release-v0.2.0' of github.com:ceoweggo/Corebrain in…
Vapniak May 27, 2025
bfff057
Merging with remote branch. Translations fixed.
ceoweggo May 27, 2025
12dd397
Fix the initialization guide
Vapniak May 27, 2025
468b56d
Merge pull request #39 from Vapniak/pre-release-v0.2.0
ceoweggo May 27, 2025
454404b
Merge remote-tracking branch 'upstream/pre-release-v0.2.0' into featu…
KarixD2137 May 28, 2025
d0978ac
Function to test connection added
barto3214 May 28, 2025
dc69c15
all commands for list-config
Bunny70pl May 28, 2025
add281d
Merge branch 'pre-release-v0.2.0' of https://github.com/ceoweggo/Core…
Bunny70pl May 28, 2025
b9452eb
added commands
Bunny70pl May 28, 2025
b89d1ee
Merge pull request #40 from ceoweggo/list_config_commands_added
ceoweggo May 28, 2025
08c479f
Added CLI argument for API key creation - fixed imports
KarixD2137 May 29, 2025
32ea038
API key creation - Finally working again
KarixD2137 May 29, 2025
495b130
API key creation - Finally working again
KarixD2137 May 29, 2025
3bf0b34
Merge branch 'main' into features/cli-api-key-creation
ceoweggo May 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 146 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
name: Corebrain SDK CI/CD

on:
push:
branches: [ main, develop ]
tags:
- 'v*'
pull_request:
branches: [ main, develop ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']

services:
# PostgreSQL service for integration tests
postgres:
image: postgres:13
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: test_db
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

# MongoDB service for NoSQL integration tests
mongodb:
image: mongo:4.4
ports:
- 27017:27017
options: >-
--health-cmd "mongo --eval 'db.runCommand({ ping: 1 })'"
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,all_db]

- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

- name: Type check with mypy
run: |
mypy core db cli utils

- name: Format check with black
run: |
black --check .

- name: Test with pytest
run: |
pytest --cov=. --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false

build-and-publish:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Build package
run: |
python -m build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true

docker:
needs: test
runs-on: ubuntu-latest
if: |
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')) ||
startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: corebrain/sdk
tags: |
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
type=sha,format=short

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
__pycache__/
*.py[cod]
*$py.class
venv/
.tofix/
README-no-valid.md
requirements.txt

# C extensions
*.so
Expand All @@ -14,7 +18,7 @@ dist/
downloads/
eggs/
.eggs/
lib/
#lib/
lib64/
parts/
sdist/
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "corebrain/CLI-UI"]
path = corebrain/CLI-UI
url = https://github.com/Luki20091/CLI-UI.git
Empty file added 1
Empty file.
147 changes: 147 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# How to Contribute to Corebrain SDK

Thank you for your interest in contributing to CoreBrain SDK! This document provides guidelines for contributing to the project.

## Code of Conduct

By participating in this project, you commit to maintaining a respectful and collaborative environment.

## How to Contribute

### Reporting Bugs

1. Verify that the bug hasn't already been reported in the [issues](https://github.com/ceoweggo/Corebrain/issues)
2. Use the bug template to create a new issue
3. Include as much detail as possible: steps to reproduce, environment, versions, etc.
4. If possible, include a minimal example that reproduces the problem

### Suggesting Improvements

1. Check the [issues](https://github.com/ceoweggo/Corebrain/issues) to see if it has already been suggested
2. Use the feature template to create a new issue
3. Clearly describe the improvement and justify its value

### Submitting Changes

1. Fork the repository
2. Create a branch for your change (`git checkout -b feature/amazing-feature`)
3. Make your changes following the code conventions
4. Write tests for your changes
5. Ensure all tests pass
6. Commit your changes (`git commit -m 'Add amazing feature'`)
7. Push your branch (`git push origin feature/amazing-feature`)
8. Open a Pull Request

## Development Environment

### Installation for Development

```bash
# Clone the repository
git clone https://github.com/ceoweggo/Corebrain.git
cd sdk

# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

# Install for development
pip install -e ".[dev]"
```

### Project Structure

```
v1/
├── corebrain/ # Main package
│ ├── __init__.py
│ ├── _pycache_/
│ ├── cli/ # Command-line interface
│ ├── config/ # Configuration management
│ ├── core/ # Core functionality
│ ├── db/ # Database interactions
│ ├── lib/ # Library components
│ └── SSO/ # Globodain SSO Authentication
│ ├── network/ # Network functionality
│ ├── services/ # Service implementations
│ ├── utils/ # Utility functions
│ ├── cli.py # CLI entry point
│ └── sdk.py # SDK entry point
├── corebrain.egg-info/ # Package metadata
├── docs/ # Documentation
├── examples/ # Usage examples
├── screenshots/ # Project screenshots
├── venv/ # Virtual environment (not to be committed)
├── .github/ # GitHub files directory
├── _pycache_/ # Python cache files
├── .tofix/ # Files to be fixed
├── .gitignore # Git ignore rules
├── CONTRIBUTING.md # Contribution guidelines
├── health.py # Health check script
├── LICENSE # License information
├── pyproject.toml # Project configuration
├── README-no-valid.md # Outdated README
├── README.md # Project overview
├── requirements.txt # Production dependencies
└── setup.py # Package setup
```

### Running Tests

```bash
# Run all tests
pytest

# Run specific test file
pytest tests/test_specific.py

# Run tests with coverage
pytest --cov=corebrain
```

## Coding Standards

### Style Guide

- We follow [PEP 8](https://www.python.org/dev/peps/pep-0008/) for Python code
- Use 4 spaces for indentation
- Maximum line length is 88 characters
- Use descriptive variable and function names

### Documentation

- All modules, classes, and functions should have docstrings
- Follow the [Google docstring format](https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings)
- Keep documentation up-to-date with code changes

### Commit Messages

- Use clear, concise commit messages
- Start with a verb in the present tense (e.g., "Add feature" not "Added feature")
- Reference issue numbers when applicable (e.g., "Fix #123: Resolve memory leak")

## Pull Request Process

1. Update documentation if necessary
2. Add or update tests as needed
3. Ensure CI checks pass
4. Request a review from maintainers
5. Address review feedback
6. Maintainers will merge your PR once approved

## Release Process

Our maintainers follow semantic versioning (MAJOR.MINOR.PATCH):
- MAJOR version for incompatible API changes
- MINOR version for backward-compatible functionality
- PATCH version for backward-compatible bug fixes

## Getting Help

If you need help with anything:
- Join our [Discord community](https://discord.gg/m2AXjPn2yV)
- Join our [Whatsapp Channel](https://whatsapp.com/channel/0029Vap43Vy5EjxvR4rncQ1I)
- Ask questions in the GitHub Discussions
- Contact the maintainers at ruben@globodain.com

Thank you for contributing to Corebrain SDK!
Empty file added FETCH_HEAD
Empty file.
Loading
Loading