semvec/pypi-packages huggingface dataset:
DDLJ 0.0.3
JSON Utils for generating DDL from JSON Schema

# JSON Utils Package (DDLj)
This is a python package having multiple utilities for handling JSON Files. 

Module1 - DDLj : Converts JSON Schema Files into ANSI SQL DDLs
Supports foll databases: 
A.PostgreSQL
B.MYSQL
C.DB2
D.MariaDB
E.Oracle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Usage:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pip install DDLJ

python

>>> from DDLj import genddl

>>> genddl(*param1,param2,*param3,*param4)

Where 

param1= JSON Schema File

param2=Database (Default Oracle)

Param3= Glossary file

Param4= DDL output script

Note : * indicates mandatory parameters

It also includes a Flask module for front-end if used as a standalone tool. Refer to App directory.
*******************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Example:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input JSON schema as:
{
	"schema": "Http://Json-Schema.Org/Draft-07/Schema#",
	"type": "object",
	"title": "TableNameTest",
	"additionalProperties": false,
	"properties": {
		"ColumnNameOne": {
			"type": "string",
			"maxLength": 10
		},
		"ColumnNameTwo": {
			"type": "string",
			"format": "date-time"
		},
		"ColumnNameThree": {
			"type": "string",
			"maxLength": 200
		},
		"ColumnNameFour": {
			"type": "string",
			"maxLength": 300
		},
		"ColumnNameFive": {
			"type": "string",
			"format": "date"
		},
		"ColumnNameSix": {
			"type": "number"
		},
		"ColumnNameSeven": {
			"type": "number"
		},
		"ColumnNameEight": {
			"type": "string",
			"maxLength": 1000
		},
		"ColumnNameNine": {
			"type": "string",
			"maxLength": 2000
		},
		"ColumnNameTen": {
			"type": "number"
		}
	}
}

Code Usage:
>>> from DDLj import genddl
>>> genddl('TestJsonSchema.json','Oracle','GlossaryTestFile.csv','GenDDLGlossary.sql')

Output:
Create Table TableNameTest (COL_NAM_One Varchar2(10),
COL_NAM_Two Timestamp(6),
COL_NAM_Three Varchar2(200),
COL_NAM_Four Varchar2(300),
COL_NAM_Five Date,
COL_NAM_Six Number(38,10),
COL_NAM_Seven Number(38,10),
COL_NAM_Eight Varchar2(1000),
COL_NAM_Nine Varchar2(2000),
COL_NAM_Ten Number(38,10));

Please see the Test Folder for JSON schema, glossary file and output.
****************************

Note: Other modules to come soon.
adsl2 0.0.6
pppoe

# adsl2
## 这是一个有趣的程序
## 你可以在这发现许多有趣的东西
## 生活不止眼前的苟且还有诗和远方
## 好看的皮囊千千万
## 有趣的灵魂万里挑一

## 扯这么多久是想告诉你这个程序只是在windown下进行自动拨号的，别惊讶！！
easy-splunk 0.2.0
A simple and complete package to abstract main operations with Splunk API (send data / run search / get result)
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Keywords: splunk

[![PyPI](https://img.shields.io/pypi/v/easy_splunk.svg)](https://pypi.python.org/pypi/easy_splunk)

easy_slpunk>
============

A simple and complete package to abstract main operations with Splunk API (send data / run searches).


Install
-------

```
pip install easy_splunk
```


Upgrade
---------

```
pip install easy_splunk -U
```


Usage
----------

```python
from easy_splunk import Splunk


host = "EVENT_HOST"
source = "EVENT_SOURCE"


try:
    spk_hec = Splunk(protocol="https", url="10.0.0.2", port="8088", timeout=60,
        hec_key="e51e9c62-5f25-46cf-9a4e-218638cdab77")
    spk_syslog = Splunk(protocol="syslog", url="10.0.0.2", port="5514")
except:
    raise


#Send a dict data as JSON to Splunk API
data_hec = {}
data_hec["Key_1"] = "Valor_1"
data_hec["Key_2"] = "Valor_2"
data_hec["Key_3"] = "Valor_3"
spk_hec.send_data(event_host=host, event_source=source, event_data=data_hec)
spk_hec.send_data(event_source=source, event_data=data_hec)

#Send a basic syslog message to Splunk
data_syslog = "Syslog message sent by easy_splunk"
spk_syslog.send_data(event_data=data_syslog)

#Run a specific search and get the result as a list of JSONs
search = 'index=raw_syslog | head 1'
search_output = spk_hec.run_search(username='admin', password='admin', search=search)
print(search_output)
```


**OUTPUTS SEND_DATA()**

![Splunk Search](/img/splunk.png)


**OUTPUT RUN_SEARCH()**

```
[
    {
        'preview': False, 
        'offset': 0, 
        'result': 
        {
            '_bkt': 'raw_syslog~0~1C4DDDBB-BFC8-49A2-A2FC-6418F3E80CAD', 
            '_cd': '0:56', 
            '_indextime': '1561619057', 
            '_raw': 'Syslog message sent by easy_splunk', 
            '_serial': '0', 
            '_si': ['localhost', 'raw_syslog'], 
            '_sourcetype': 'syslog', 
            '_time': '2019-06-27 15:04:17.000 CST', 
            'host': '10.0.0.2', 
            'index': 'raw_syslog', 
            'linecount': '1', 
            'source': 'udp:5514', 
            'sourcetype': 'syslog', 
            'splunk_server': 'localhost'
        }
    }
]
```