Metadata-Version: 2.1
Name: eikobot
Version: 0.2.1
Summary: The eikobot desired state engine.
Author: kazaamjt
Author-email: kazaamjt@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# Eikobot Desired State Engine

*The little Desired State Engine that made it so.*  

Eikobot is a desired state orchestrator.  
The basic idea is that you describe your infrastructure and eikobot
will make it happen.  

The language is akin to python, as this is a commonly used language
and the language in which eikobot and eikobot plugins are written.  

## Installation

Eikobot requires python 3.10 or up and has 2 external dependencies that can be install using pip.  
In fact, Eikobot can be installed using pip as well.  

Here is an example of how to install Eikobot:  
(This should work on most platforms, although the python command might be different if you are on windows)

```bash
python3.10 -m venv eikobot-venv
eikobot-venv/bin/pip install eikobot
```

You can now use the eikobot commands,
either by invoking them directly with their venv path:

```bash
eikobot-venv/bin/eikobot
```

Or by activating the venv first:

```bash
. eikobot-venv/bin/activate
eikobot
```

Once you have installed Eikobot,
you can get familiar with Eikobot language by reading [the basic instructions](docs/basics.md)

## Roadmap

### Frontend

Features and bug fixes:

- [x] basic lexer
- [x] basic expression parser
- [x] basic types (bool, int, float, string)
- [x] Math and string operations
- [x] Resource definitions
- [x] base import system (`import some_module`)
- [x] basic typing (allowing expressions for typing)
- [x] cli commands
- [x] add `from` imports (`from some_module import some_thing`)
- [x] a plugin system
- [x] add typedefs
- [x] allow for complex types (Type parsing is wholy seperate now)
- [x] add a `None` type
- [x] add `Optional`, allowing for something to be either None or some other type.
- [x] allow for NotSet
- [x] add a `Union` type
- [x] add a `List` type
- [x] add a `Dict` type
- [x] automatic/lazy sub imports
- [x] add decorators
- [x] indexes used to track items
- [x] constructors for builtin types
- [x] `Path` type, uses python `Pathlib.Path` underneath
- [ ] link handlers to resources
- [ ] custom constructors
- [ ] inheritance for `resource`
- [ ] add `Tuple` data type and automatic unpacking of tuples
- [ ] add `for` keyword, to loop over lists and dicts
- [ ] Expand type system (take module in to account)


Code cleanup:

- [ ] Implement an `expects` function for parser, raise if token is not correct type

### STD

- [x] add basic regex.match
- [x] add debug_msg (requires `None`)
- [x] add IPv4/IPv6 types
- [x] File module
- [x] Templates using jinja

### Backend

- [ ] add `CRUDHandlers` and `HandlerContext`, that reflect how a resource is deployed
- [ ] add deployment engine

## Linters, type checkers, testing, etc

Currently this project uses:

- `mypy` for advanced type checking
- `isort` to auto format the imports
- `black` to auto format code
- `flake8` to do basic linting (and pointing out where isort and black would make changes)
- `pylint` for advanced linting and code smell detection
- `bandit` to scan for security issues

Note that the `flake8-isort` and `flake8-black` plugins are used,
and Flake8 will emit `isort` and `black` issues but not auto format them,
these tools will still need to be ran afterwards to fix any errors.  
The `Flake8-pylint` and `Flake8-mypy` plugins are not used as they are in broken state.  

For vscode, adding the following settings to your config is recommended:

```json
{
    "python.linting.flake8Enabled": true,
    "python.linting.mypyEnabled": true,
    "python.linting.pylintEnabled": true,
    "python.testing.pytestEnabled": true,
    "python.testing.pytestArgs": [],
    "editor.insertSpaces": true,
}
```
