semvec/pypi-packages huggingface dataset:
datastoraginglanguage 1.0.1
A parser for DSL Language (Data storaging language)!.

# dsl
Data Storaging Language (DSL), it's a data serialization language for storaging variables<br>

# DSL Syntax
```py
string.variable: "This variable its called 'variable' and its a string"
integer.variableTwo: "10"
float.floatVariable: "1.0"
array.arrayVariable: [value1,value2,value3]
```

# DSL Library
```sh
git clone https://github.com/zsendokame/dsl; pip install .

# Or

pip install datastoraginglanguage
```

# Parser Tutorial
```py
# To parse a text to a dict object (DSL to Python Object)
# Use:
import dsl

dslCode = """
string.stringValue: "string"
integer.integerValue: "1"
float.floatValue: "1.0"
array.arrayValue: [value1,value2,value3]
"""

loadDslCode = dsl.load(dslCode)
print(loadDslCode)
""" Stylized output.
{
    'stringValue': {
        'type': 'string',
        'value': 'string'
    },
    'integerValue': {
        'type': 'integer',
        'value': 1
    },
    'floatValue': {
        'type': 'float',
        'value': 1.0
    },
    'arrayValue': {
        'type': 'array',
        'value': ['value1', 'value2', 'value3']
    }
}
"""

dict_ = {
    "firstVariable": {
        "type": "string",
        "value": '"value"'
    },
    
    "secondVariable": {
        "type": "integer",
        "value": '"1"'
    },
    
    "thirdVariable": {
        "type": "float",
        "value": '"1.0"'
    },
    
    "fourthVariable": {
        "type": "array",
        "value": "[value1,value2,value3]"
    }
}

dumpDslCode = dsl.dump(dict_)
print(dumpDslCode)

""" Not-stilized Output
string.firstVariable: "value"
integer.secondVariable: "1"
float.thirdVariable: "1.0"
array.fourthVariable: [value1,value2,value3]
"""
```

# News
- No tasks.

# Updates
- Load function (Now, thanks to Eiya!.).
- New types: Float and Arrays.
smoothcode_auth 0.0.4
Python Auth Library that exposes utility functions to authenticate SmoothCode requests

# SmoothCode Auth Python
[![Tests](https://github.com/Smooth-Code-IO/smoothcode-auth-python/actions/workflows/tests.yml/badge.svg)](https://github.com/Smooth-Code-IO/smoothcode-auth-python/actions/workflows/tests.yml)

## Introduction
Python Auth Library that exposes utility functions to authenticate SmoothCode requests

## Installation
* Supported python versions
```shell
>= python3
```
* Install using
```shell
pip install smoothcode_auth
```

## Usage
This library exposes 2 methods
* `is_dashboard_request(shop)` - This method verifies if the request for accessing the dashboard is coming from `SmoothCode`
```python
from smoothcode_auth import SmoothCodeAuth

# SmoothCode sends query parameters to the URL
# shop -> Shopify Shop in the form: `test.myshopify.com`
# hmac -> HMAC of the shop signed by your App Client Secret (can be obtained from SmoothCode Dashboard in App Settings) 

SmoothCodeAuth(request_hmac, client_secret).is_dashboard_request(shop) # returns True if the request is valid
```
* `is_webhook_request(webhook_data)` - This method verifies if the webhook request is coming from `SmoothCode` 
```python
from smoothcode_auth import SmoothCodeAuth

# SmoothCode sends hmac in the Authorization Header of the request
# It is hmac of the webhook id signed by your App Client Secret

SmoothCodeAuth(request_hmac, client_secret).is_webhook_request(webhook_data) # returns True if the request is valid
```

***