semvec/pypi-packages huggingface dataset:
pymolecule-parser 0.1.0
A parser for molecule formula. Nested brackets are supported.
Requires Python: >=3.7

# pymolecule-parser: A parser for a molecule formula that supports nested brackets

[![pymolecule-parser-test](https://github.com/kohei-noda-qcrg/pymolecule-parser/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/kohei-noda-qcrg/pymolecule-parser/actions/workflows/test.yml)

## Installation

```bash
pip install pymolecule-parser
```

## Usage

- pymolecule_parser.parse returns a dictionary of atoms and their numbers. (type: dict[str, int])

```python
from pymolecule_parser import parse

dict_1 = parse("H2O") # {'H': 2, 'O': 1}
dict_2 = parse("3H2O") # {'H': 6, 'O': 3}
dict_3 = parse("H2O2(OH)2") # {'H': 4, 'O': 4}
dict_4 = parse("[Co(NH3)6]Cl3") # {'Co': 1, 'N': 6, 'H': 18, 'Cl': 3}
```

## Options

- strict_mode
  - If `strict_mode` is `True`, the parser expects all atoms in the argument to be from hydrogen (H) to oganeson (Og), otherwise raises an exception
  - If `strict_mode` is `False`, the parser parses arguments even if they are not existing atoms if they satisfy the rules for writing atoms (first letter is uppercase, subsequent letters are lowercase)
  - Default: `False` (non-strict mode)

If you want to use strict mode, please use the following code.

```python
from pymolecule_parser import parse

dict_1 = parse("H2O", strict_mode=True) # {'H': 2, 'O': 1}

```


## Limitations
The following notations are not supported.
- Ion notations
  - For example, `[Cu(NH3)4]2+` is not supported. Use `Cu(NH3)4` instead.
- middle dot `·`
  - For example, `CuSO4·5H2O` is not supported. Use `CuSO4(H2O)5` instead.

## License

Apache License 2.0

## Author

Kohei Noda
SqliteOrmMagic 0.0.6
Facilitates the complex syntax of SQL queries through the use of standard commands for reading / writing to the SQlite3 database in Python program

# SqliteOrmMagic
 Facilitates the complex syntax of SQL queries through the use of standard commands for reading / writing to the SQlite3 database in Python program
**********************
<b>For example:</b><br>
<br>
Import<br>
<code>from SqliteOrmMagic import SQLiteDB</code><br>
<br>

<b>Importing the library:</b><br>
<code>import SqliteOrmMagic as som</code><br>
<br>
<b>Create an instance of the class:</b><br>
<code>db=som.SQLiteDB('users.db')</code><br>
<br>
<b>Create a table:</b><br>
<code>db.create_table(table, list_query_params)</code><br>
table: str table name <br>
list_query_params: list query parameters <br>
An example of how column names are passed to a table by a list of tuples:<br>
<code>list_query_params = [<br>
('from_user_id', 'INTEGER UNIQUE'),   must be unique values ​​here<br>
('from_user_username', 'TEXT'),<br>
('from_user_firstname', 'TEXT'),<br>
('regtime', 'INTEGER')<br>
]</code><br>
<br>
<b>Search in a column by cell value</b><br>
<code>res = db.find_elements_in_column(table_name, key_name, column_name)<br>
print(res) # print the search result</code><br>
Database search function by cell value with column name returns a list of tuples of one table row<br>
table_name: str table name<br>
key_name: str key name<br>
column_name: str column name<br>
<br>
<b>Search in a column by a string in a cell</b><br>
<code>res = db.find_elements_by_keyword(table_name, key_name, column_name)<br>
print(res) # print the search result</code><br>
Database search function searches for matches in a column line by line returns a list of tuples<br>
table_name: str the name of the table<br>
key_name: str keyword string<br>
column_name: str column name<br>
<br>
<b>Insert row with unique value by column</b><br>
<code>db.ins_unique_row(table_name, list_query_params)</code><br>
database insertion function unique value with column name if there was a UNIQUE flag when creating a column in a database table<br> 
table_name: str table name<br>
list_query_params: list list of tuples of one table row<br>
Parameter List Loading Example<br> 
<code>list_query_params = [<br>
('from_user_id', '123'),<br>
('from_user_username', 'vasya'),<br>
('from_user_firstname', 'petrov'),<br>
('regtime', '1234568')<br>
]</code><br>   
<br>
<b>Update the value of a cell in a column</b><br>
<code>db.upd_element_in_column(table_name, upd_par_name, key_par_name, upd_column_name, key_column_name)</code><br>
database insertion function unique value with column name if there was a UNIQUE flag when creating a column in a database table<br> 
database update function by cell value with column name<br>
table_name: str table name<br>
upd_par_name: str name of the parameter to update<br>
key_par_name: str name of the parameter to search<br>
upd_column_name: str name of the column to update<br>
key_column_name: str name of the column to search<br>
*********************
<b>all wishes and suggestions can be sent to the author @Practic_old</b>
micro-orch 0.1.2
Python Microservice Orchestrator
Requires Python: >=3.9
Keywords: microservice,saga,patterns,microservice patterns,saga pattern

Microservice orchestration architecture provides a robust framework for building and managing complex applications. By leveraging independent services and a centralized orchestrator, you can achieve scalability, fault tolerance, and maintainability. Refer to Chris Richardson's book [Microservices Patterns](https://microservices.io/index.html) for more in-depth guidance on this architecture.

---

### Credit:
This project has been inspired by [saga framework](https://github.com/absent1706/saga-framework) and the book [Microservices Patterns](https://www.amazon.com/Microservices-Patterns-examples-Chris-Richardson/dp/1617294543) written by Chris Richardson.