Skip to main content
Automata
========

Automata is a customized personal assistant module which can be integrated with your python scripts. You can easily plug your own modules with it and that's not even the best part :)


Installation
------------

```
pip install python-automata
```


Usage
-----

### Example

```python
from automata import automata

ob = automata.Automata()
res = ob.execute('What is the meaning of life?')

print res
```

### Output

```bash
The answer to the ultimate question of life, the universe and everything is 42.
```


It has some pre defined modules like:

1. Telling day, date and time
2. Finding meaning of words
3. Telling meaning of life for the lost souls

To develop your own module, follow the module development guide below.


Module dev guide
----------------


Below are some general guidelines for developing your own module:

* The name of the python script should always start from ```mod_```. Example ```mod_time.py```
* It should have a global list named **KEYWORDS** containing some keywords which will trigger this module. Example for the ```mod_time.py```, the list is something like this ```KEYWORDS = ['what', 'time']```
* Every module should contain a method named ```run(query='')``` which will receive the input query. Example:
```python
from datetime import datetime

KEYWORDS = ['what', 'date']

def run(query=''):
return datetime.now().strftime("%Y:%m:%d")
```
* The ```run(query='')``` should return the response generated by it which could be used for further processing.
* Any processing of the input query should be done in the ```run(query='')``` method.
* These modules should be places in a single folder and you need to give the path to that module while instantiating the **Automata class**. Example;
```python
from automata import automata

ob = automata.Automata('/Users/testuser/modules')
res = ob.execute('What is the meaning of life?')

print res
```


Note: Contributions and suggestions are always invited

Metadata

Release files for python-automata 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-automata 0.0.1
File Size Uploaded Provenance Actions
python-automata-0.0.1.tar.gz 3.9 kB Without provenance Details for python-automata-0.0.1.tar.gz

Release files / python-automata-0.0.1.tar.gz

Download URL python-automata-0.0.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c3cc9c171d44f130e17bf04f48cbd6a2652154349b7f38778e86cc2e20390e37
BLAKE2b-256 checksum
How to use checksums
c8187854ebf9dad96cb8b9e2f83277b0ed1e842abc2d2062e822cfdf404a72ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-automata 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page