Skip to main content

🍀 yotsuba

Documentation

Install yotsuba.

  • Via pip (under construction)
pip install yotsuba-python
  • From source.
git clone https://github.com/yutayamazaki/yotsuba.git
cd yotsuba/bindings/python
python setup.py install

API documents.

yotsuba

yotsuba.pad_sequences(sequences: List[List[int]], maxlen: int, value: int = 1, padding: str = 'post') -> List[List[int]]

Pad sequences with given value like keras.preprocessing.sequence.pad_sequences.

Parameters
  • sequences (List[List[int]]) - Sequences to padded.
  • maxlen (int) - Maximum sequence length to pad.
  • value (int) - A value used to pad sequences.
  • padding (str) - 'pre' or 'post', default is 'post'.
Returns
  • List[List[int]] - An list of integers with shape (len(sequences), maxlen).
Raises
  • ValueError - If padding is not 'pre' or 'post'.
Examples
from typing import List

import yotsuba

sequences: List[List[int]] = [[0, 2, 1], [0, 1]]
padding: List[List[int]] = yotsuba.pad_sequences(
    sequences=sequences, maxlen=5, value=-1, padding='post'
)
assert padding == [[0, 2, 1, -1, -1], [0, 1, -1, -1, -1]]

Metadata

Release files for yotsuba-python 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yotsuba-python 0.1.3
File Size Uploaded Provenance Actions
yotsuba-python-0.1.3.tar.gz 7.1 kB Without provenance Details for yotsuba-python-0.1.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for yotsuba-python 0.1.3
File Actions
yotsuba_python-0.1.3-cp39-cp39-manylinux1_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.5+ x86-64 Details for yotsuba_python-0.1.3-cp39-cp39-manylinux1_x86_64.whl
yotsuba_python-0.1.3-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for yotsuba_python-0.1.3-cp38-cp38-win_amd64.whl
yotsuba_python-0.1.3-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details for yotsuba_python-0.1.3-cp38-cp38-manylinux1_x86_64.whl
yotsuba_python-0.1.3-cp38-cp38-macosx_10_11_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.11+ x86-64 Details for yotsuba_python-0.1.3-cp38-cp38-macosx_10_11_x86_64.whl
yotsuba_python-0.1.3-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for yotsuba_python-0.1.3-cp37-cp37m-win_amd64.whl
yotsuba_python-0.1.3-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details for yotsuba_python-0.1.3-cp37-cp37m-manylinux1_x86_64.whl
yotsuba_python-0.1.3-cp37-cp37m-macosx_10_11_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.11+ x86-64 Details for yotsuba_python-0.1.3-cp37-cp37m-macosx_10_11_x86_64.whl
yotsuba_python-0.1.3-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for yotsuba_python-0.1.3-cp36-cp36m-win_amd64.whl
yotsuba_python-0.1.3-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for yotsuba_python-0.1.3-cp36-cp36m-manylinux1_x86_64.whl
yotsuba_python-0.1.3-cp36-cp36m-macosx_10_11_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.11+ x86-64 Details for yotsuba_python-0.1.3-cp36-cp36m-macosx_10_11_x86_64.whl
yotsuba_python-0.1.3-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for yotsuba_python-0.1.3-cp35-cp35m-win_amd64.whl
yotsuba_python-0.1.3-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details for yotsuba_python-0.1.3-cp35-cp35m-manylinux1_x86_64.whl
yotsuba_python-0.1.3-cp35-cp35m-macosx_10_11_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64 Details for yotsuba_python-0.1.3-cp35-cp35m-macosx_10_11_x86_64.whl

Total release size: 10.5 MB

Release files / yotsuba-python-0.1.3.tar.gz

Download URL yotsuba-python-0.1.3.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
11c216fb0badc97514f590e8bee29c263e63a3f8f544e7c5dfd17c1c1fdce5c0
BLAKE2b-256 checksum
How to use checksums
147f5caa1534831e322b630ec84f41384884dcc0bb7e09a7c5b4b94224cb7949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp39-cp39-manylinux1_x86_64.whl

Download URL yotsuba_python-0.1.3-cp39-cp39-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.9 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
6099d8d5326fb3dab20813d08bd604b07f4765aae6aaae5620c69739a09db52f
BLAKE2b-256 checksum
How to use checksums
6a3e5a7fcc4d04fa4c3e5ee7d5eda96d5afc8cd73ac71ad6ab7d17796187fb56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp38-cp38-win_amd64.whl

Download URL yotsuba_python-0.1.3-cp38-cp38-win_amd64.whl
Size 511.4 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
12df7dbc68f33ce54fb2da90b2bb4e132e11c15eca8e06af3d248ba1fc468aac
BLAKE2b-256 checksum
How to use checksums
13232c7245d9d3d212e1d87166e1c76355bed293f524308398632a7e4d01b018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp38-cp38-manylinux1_x86_64.whl

Download URL yotsuba_python-0.1.3-cp38-cp38-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
83a1837ce9952d04b7b0342ba01353b0124ce6f2d95e117307b6f1bf880214e4
BLAKE2b-256 checksum
How to use checksums
13fb932d3cd5f2811e8755069d118e625f43227d56d7f68e8a85867ca4cbd45f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp38-cp38-macosx_10_11_x86_64.whl

Download URL yotsuba_python-0.1.3-cp38-cp38-macosx_10_11_x86_64.whl
Size 569.9 kB
Tags CPython 3.8 macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
338bb8ce3cb15a46fd6bc2270ef9f2ff5eaa64b4a65e6d13eaae6427a1680287
BLAKE2b-256 checksum
How to use checksums
c52b6f6623b5afb2cf18867191f1465eab4a0091765f27a41387f15742bd1341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp37-cp37m-win_amd64.whl

Download URL yotsuba_python-0.1.3-cp37-cp37m-win_amd64.whl
Size 511.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
8c14fc337a23286aba6cf7acc9a81047ee968b2199206ee10951d9f273d2da39
BLAKE2b-256 checksum
How to use checksums
f3d94e8298d384aa5e777d356351f944c07d8b2ea7527e391d2514a285d9b577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp37-cp37m-manylinux1_x86_64.whl

Download URL yotsuba_python-0.1.3-cp37-cp37m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
e6b35deb8c0a807354311b4968de06ba780e6a0b3c30956c1d663a908ff41979
BLAKE2b-256 checksum
How to use checksums
d06ad31be2bdba71059ca348ed7f6b6912d4239d9a12338634c55814d64b3d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp37-cp37m-macosx_10_11_x86_64.whl

Download URL yotsuba_python-0.1.3-cp37-cp37m-macosx_10_11_x86_64.whl
Size 569.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
0520748d19fde9732458bb3b5ae5b1c0dbdcc742c34ad57dba4bc29ebd246af3
BLAKE2b-256 checksum
How to use checksums
e9c1d18979d18ab98661c35eafd4a4b52b616cc37be81de1c1686730b1577948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp36-cp36m-win_amd64.whl

Download URL yotsuba_python-0.1.3-cp36-cp36m-win_amd64.whl
Size 511.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
0d353d4f5acdf5f2839154e8fa6e07496cef1805b3cd12b0cd409504ce4a08de
BLAKE2b-256 checksum
How to use checksums
dd7e2266f6a1430d8be1b038ecd6b1f01eecad93b44f3031955457821ea924a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp36-cp36m-manylinux1_x86_64.whl

Download URL yotsuba_python-0.1.3-cp36-cp36m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
e61e70bf10f0a4713b930603385f8b03ac197c3e2e2fb981cec290365e3a6db7
BLAKE2b-256 checksum
How to use checksums
0d0e9f91d701c8ea4134754813b2199f8d5e43104136ef7a3d5f613a9d0382d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp36-cp36m-macosx_10_11_x86_64.whl

Download URL yotsuba_python-0.1.3-cp36-cp36m-macosx_10_11_x86_64.whl
Size 570.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
fc52a59a29440e7168f05b98bf5a1b296022845bf3bc099cc9d90c0a979cd8fd
BLAKE2b-256 checksum
How to use checksums
1f81bd163192216fb25263b1ec9d59c1af17c4dd92d2212d9b71de72435c6cd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp35-cp35m-win_amd64.whl

Download URL yotsuba_python-0.1.3-cp35-cp35m-win_amd64.whl
Size 511.7 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
bda46f6475276cb01bb735b999e85be0d528352e78a9d883e4fb9b29ebbe5888
BLAKE2b-256 checksum
How to use checksums
07016bee5328e6c6d05dca7af50519eec56aa914a5b153124560e5b941f32cd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp35-cp35m-manylinux1_x86_64.whl

Download URL yotsuba_python-0.1.3-cp35-cp35m-manylinux1_x86_64.whl
Size 1.2 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
da12dc62e7dbf99363dfe7e4b09dfdf24b19706ef587c651f1bc325ab1f3bd88
BLAKE2b-256 checksum
How to use checksums
f6a30ce5857ddf0da6a2dad57512aa849af3ab5c64c13c90d2a1aaf9c7b9657d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / yotsuba_python-0.1.3-cp35-cp35m-macosx_10_11_x86_64.whl

Download URL yotsuba_python-0.1.3-cp35-cp35m-macosx_10_11_x86_64.whl
Size 570.1 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.11+ x86-64
SHA-256 checksum
How to use checksums
485d9ad75ff8358bc6769a56c8038243f4328991bf4d76e68a97dec149c8643f
BLAKE2b-256 checksum
How to use checksums
2a336d73e0637bf8f55d04e1abb54ea34040c33dd2e66589bcdea86bfc11524c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Security for yotsuba-python 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

14 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page