semvec/pypi-packages huggingface dataset:
dpdata-abinit 0.0.4
Dpdata plugin of ABINIT hist file

# dpdata_abinit
Abinit plugin for dpdata

Install
```
pip install .
```

Usage:

1. Prepare the abinit histfile which contains a set of structures 
and the corresponding energies, forces, and stresses. Here we call this file
 Abinit_hist_file.abihist

2. Write a python script like this. 
```Python
#!/usr/bin/env python3

import dpdata
# load data from the file Abinit_hist_file.abihist
d = dpdata.LabeledSystem("Abinit_hist_file.abihist", format='abihist')
# write to raw file
d.to_deepmd_raw('00.data')
# You can also write to npy file.  The data set is splitted into multiple npy files, each containing set_size of samples.
d.to_deepmd_npy('00.data', set_size=2638)
```

3. Run the script
pylib3 0.0.4
Python Shared Library
Requires Python: >=2.7

# PYLIB3

- The pylib3 is a shared python library, that includes common functions
  that can be used in any python package.
- This package can be used both with python2 and python3

## Usage:
- Install the pylib3 package (inside your project virtual environment)
```
pip install pylib3
```

- To import the pylib3 package
```
import pylib3
```

- To use one of the common functions from the pylib3 package
```
from pylib3 import timer
```

## Common Functions:

```
get_version(caller, version_file)
```

Gets the version number from the version_file

param str caller: source file caller (i.e __file__)
param str version_file: a version file to get the version number from
returns (str): version number or '0.0.0' if the version_file doesn't exists

```
init_logging(log_file, verbose=False, console=False, info='white', debug='blue', warning='yellow', error='red', critical='red')
```

Logger initialization

param str log_file: log file name
param bool console: if set to True will print logs both to a file and to stdout (console)
param bool verbose: if set to True will print more information
param str info: info messages color
param str debug: debug messages color
param str warning: warning messages color
param str error: error messages color
param str critical: critical messages color

```
timer(func)
```

This function used as a decorator function to print the
elapsed time of the passed function

param obj func: original function
returns (obj): wrapper function
jittok 0.0.6
Swiss Army Knife-like toolbox for data processing

# jittok

`jittok` is a Swiss Army Knife-like toolbox for data processing.

## Installation

```
pip install jittok
```

## Features

### `jptext` - Japanese text related functions

#### text normalization

```
>>> from jittok import jptext
>>> jptext.normalization("ｾﾞﾝｶｸｶﾅ")
'ゼンカクカナ'
```

#### parsing Japanese numeric string

```
>>> from jittok import jptext
>>> jptext.to_numeric("一二,三四五億2百十万987")
1234502100987
```

### `jpdatetime` - Japanese datetime related functions

#### parsing Japanese "wareki" string

```
>>> from jittok import jpdatetime
>>> jpdatetime.strptime("令和元年10月3日", "%Y年%m月%d日")
datetime.datetime(2019, 10, 3, 0, 0)
>>> jpdatetime.strptime("昭和64年1月1日", "%Y年%m月%d日")
datetime.datetime(1989, 1, 1, 0, 0)
```

It parses `"明治"`, `"大正"`, `"昭和"`, `"平成"`, `"令和"` and does not support consistency check:

```
>>> from jittok import jpdatetime
>>> jpdatetime.strptime("大正90年10月3日", "%Y年%m月%d日")
datetime.datetime(2001, 10, 3, 0, 0)
```