semvec/pypi-packages huggingface dataset:
pyktl 0.3.3
This library provides utility methods to generate and sign Knox Cloud Tokens using python.
Requires Python: >=3.8

![status: active](https://img.shields.io/badge/status-active-green.svg)
![status: release](https://img.shields.io/badge/release-0.3.2-red.svg)
![status: branch](https://img.shields.io/badge/branch-master-lightgrey.svg)

<div style="text-align: right"> 
    <a href="https://www.buymeacoffee.com/mattintech" target="_blank">
    <img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
</div>


# KnoxTokenLibary-Python ('pyktl')

**This is not an offical Samsung library or repository**

pyktl is a python rewrite of the knox-token-library-js library written by Samsung.  The following code was used to build this project. https://www.npmjs.com/package/knox-token-library-js?activeTab=readme

The prerequesits for this library are: 
```
pip install pycryptodome "pyjwt[crypto]"
```

## Usage

Install using: 
```
pip install pyktl
```

### Assumptions 
 - You have downloaded the Knox Certificate file (certificate.json)
 - You have generated a Client Identifier (api-key) for accessing apis of Knox Cloud Services.

### Intended Use
The workflow for making api calls to Knox Cloud Services is divided into a portal workflow, and a programmatic workflow.
Portal flow

 - Download Certificate from Knox Api Portal
 - Generate and Download ClientIdentifier (api-key) for a specific Knox Solution

### Programmatic flow

 - Call Knox api to generate an Api Access Token. This api call requires a signed ClientIdentifier, and specific contents of your Certificate (Public Key).
 - Call Knox api for your intended workflow (eg: upload device, configure device etc). This api call requires your signed Api Access Token, and specific contents of your Certificate (Public Key).

 - This utility py library helps generate signed clientIdentifiers, and signed accessTokens.

## Included Examples
Leverage the KnoxAccessToken.py & test_KmeApi.py examples that show successful authetnication to the Knox Mobile Enrollment ('KME') api.

The example leverages a keys.json which is obtained using the SamsungKnox.com portal - view the Samsung tutorial for more details. 
The example also leverages clientId.json which includes the clientIds 

```
{
    "kme": "",
    "kc": "",
    "ke1": "",
    "kai": ""
}
```
You can also reference Samsung's authentication tutorail found here: https://docs.samsungknox.com/dev/knox-cloud-authentication/tutorial/tutorial-for-customers-generate-access-token/. 
I did attempt to keep only required method names, so not all methods in the docs will be available in pyktl.


## Local Build & Install
In order to build and install pyktl locally you can run the following commands:

```
python setup.py sdist bdist_wheel
pip install .
```

Note - the above requires prerequesit wheel

```
pip install wheel
```
spotlighter 0.0.8
auto-preprocess GL to upload spotlight

# SPOTLIGHT

## Ver

v0.0.8 DD 231219

## 목적

Spotlight upload를 위한 정형화된 전처리 자동화

## 작동방법

pip install spotlighter
import spotlight as sl
sl.run()

## 주요기능

1. 전처리

* Excel to Text  
* concatenate text  
* check text header (TEST)    
* Merge Text (i.e. BSEG+BKPF) (if already set df, automatically transferred to dfA)    

2. DF to SQL(IMPORT)

* To Insert to SQL, Read columns'length  
* Create Table => with mySQL  
* Import file and Insert to DB  

3. MAIN RUN 

* Read text to dataframe  
* Auto_MAP : MAP_GL.xlsx 파일을 활용하여 columns 자동 매핑 + 추가  
* Modify mode(After Auto_MAP)  
* To recon G/L and T/B, export SUM(AMT LC)groupby Acct  

3-1. MODIFY MOD

3-1-1. 전처리-전표금액

* replace string (Kill comma, space, regex etc.)  
* Apply DC (차변은 +, 대변은 - 처리)  
* To Minus () or - : 문자열 () 또는 후위-인 경우 마이너스로 변환  
* Multiple 100  : 곱하기 100  
* FROM 전표금액 TO 차대금액  : signed 전표금액에서 unsigned 차변/대변을 생성한다.  
* FILLNA(0)  : N/A를 0으로 채운다.  
* 자동수동 : 특정 컬럼값(전표성격, 사용자 등)이 특정 문자열(복수 가능)을 포함하는 행을 A로 지정  

3-1-2. 전처리-기타

* drop a column  
* drop duplicate  
* Change column name  
* Change column datatype  
 
4. SAVE TO..

* Save text  
* Save a part of df(특정 계정과목 추출 등)  

5. 일반기능

* MANUAL HANDLING - DEBUG  
* df.info()  
* df.head(10)  

## Help
FA&A 박형원
dtnsim 1.7
DTN (Delay/Disruption Tolerant Networking) simulator with several agent/mobility models

# NAME

dtnsim - DTN (Delay/Disruption Tolerant Networking) simulator with several agent/mobility models

# DESCRIPTION

**dtnsim** is a DTN (Delay/Disruption-Tolerant Networking) simulator written
in Python.  Since all programs in **dtnsim** are written in Python, if you are
a Python programmer, you can easily modify simulator functionalities and/or
add new features.  Python is one of major light-weight programming languages,
which enables rapid prototyping of DTN simulations.  For instance, when you
think of a novel network protocol for DTN, you can rapidly implement the
protocol with the help of high expressiveness of Python language.

Since almost everything in **dtnsim** is written in Python, **dtnsim** is not
suitable for extremely large-scale DTN simulations.  For instance, **dtnsim**
is not suitable for very large-scale DTN simulations with millions of agents
(i.e., mobile nodes/terminals).  However, such limitation is not an issue in
practice since DTN is generally expected to be utilized in environments with
spares agents.

# EXAMPLE

```sh
dtnsim | cellx
```

# INSTALLATION

```python
pip3 install dtnsim
```

# AVAILABILITY

The latest version of **dtnsim** is available at PyPI
(https://pypi.org/project/dtnsim/) .

# AUTHOR

Hiroyuki Ohsaki (ohsaki[atmark]lsnl.jp)