Skip to main content

No project description provided

Project description

스크린샷 2023-01-02 오후 12 56 27

tossicat-python

PyPI GitHub license

tossicat-python은 현재 PyPi에 올라가 있는 파이썬 라이브러리입니다.
해당 소스코드는 PyO3를 사용하여 tossicat-core를 파이썬에서 사용할 수 있도록 바인딩 합니다.

사용방법

먼저 pip를 사용하여 라이브러리를 설치합니다.

pip install tossicat-python

해당 패키지에서는 크게 2가지의 함수를 지원합니다.

postfix(word, tossi)

이 함수는 단어와 토씨(조사)를 파라미터로 받으며 앞 단어에 맞는 토씨로 변환 후 문자열로 합쳐 반환합니다.
예시 코드는 아래와 같습니다.

import tossicat as tc

word = "테스트"
tossi = "은"

result = tc.postfix(word, tossi)

print(result)
테스트는

modify_sentence(sentence)

이 함수는 문장 문자열 중에서 중괄호 {단어, 토씨}로 구성된 값을 파싱하여 올바른 토씨로 반환 후 다시 반환합니다.
예시 코드는 아래와 같습니다.

import tossicat as tc

sentence = "{한국어, 은} 정말 좋은 언어입니다. {커피, 을} 정말 좋아해요"

result = tc.modify_sentence(sentence)

print(result)
한국어는 정말 좋은 언어입니다. 커피를 정말 좋아해요

https://www.youtube.com/watch?v=H9Fj___zmkg

transform(word, tossi)

이 함수는 단어와 토씨(조사)를 파라미터로 받으며 앞 단어에 맞는 토씨로 변환하여 각각 반환합니다.
예시 코드는 아래와 같습니다.

import tossicat as tc

word = "테스트"
tossi = "은"

result = tc.transform(word, tossi)

print(result)
("테스트", "는")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tossicat_python-0.1.2.tar.gz (14.0 kB view details)

Uploaded Source

Built Distributions

tossicat_python-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (255.4 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-pp310-pypy310_pp73-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (441.4 kB view details)

Uploaded PyPy macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

tossicat_python-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (253.7 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (438.2 kB view details)

Uploaded CPython 3.13 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

tossicat_python-0.1.2-cp312-none-win_amd64.whl (125.6 kB view details)

Uploaded CPython 3.12 Windows x86-64

tossicat_python-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (253.9 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (438.5 kB view details)

Uploaded CPython 3.12 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

tossicat_python-0.1.2-cp311-none-win_amd64.whl (125.5 kB view details)

Uploaded CPython 3.11 Windows x86-64

tossicat_python-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (254.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (439.1 kB view details)

Uploaded CPython 3.11 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

tossicat_python-0.1.2-cp310-none-win_amd64.whl (125.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

tossicat_python-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (254.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (439.6 kB view details)

Uploaded CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

tossicat_python-0.1.2-cp39-none-win_amd64.whl (125.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

tossicat_python-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (254.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (439.1 kB view details)

Uploaded CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

tossicat_python-0.1.2-cp38-none-win_amd64.whl (125.4 kB view details)

Uploaded CPython 3.8 Windows x86-64

tossicat_python-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (254.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-cp38-cp38-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (439.1 kB view details)

Uploaded CPython 3.8 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

tossicat_python-0.1.2-cp37-none-win_amd64.whl (125.3 kB view details)

Uploaded CPython 3.7 Windows x86-64

tossicat_python-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (254.1 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

tossicat_python-0.1.2-cp37-cp37m-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (439.2 kB view details)

Uploaded CPython 3.7m macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

File details

Details for the file tossicat_python-0.1.2.tar.gz.

File metadata

  • Download URL: tossicat_python-0.1.2.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for tossicat_python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b7e225a074a8cfa3eb064c66b4556cb47f04d640defbe13f2e699d0a72967d35
MD5 b2103f3051cc17a364a768948ce9d9ff
BLAKE2b-256 55d35810d14508a9e8f92071c3e9680320af3901ff8dab90b8f018b2dd223119

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4105bf72184532f3e1db853d025fcf23b0bd4c90b5a2396d8ee016fdd6526154
MD5 cc12e68143f8d5c5b7efbc395be0eaaf
BLAKE2b-256 edb8e374d8214364782b9561c5c200a9e0836654c282dfb23ae4ad809491850a

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-pp310-pypy310_pp73-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-pp310-pypy310_pp73-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 5bc6e9d8f6b6c180d966e25ec70d32bfb1631260ed17ffb1dcad1b9ac7b31247
MD5 a557735c15494b3a66e4c0b150c3e9d1
BLAKE2b-256 da103fe961d7215dadc40574a43b25e80de3df1b9a86c7e129037e81e15a2d26

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf9b8c04ff94e01383d9099c8273be058f19883e82ab5afb3a870a6ed158941a
MD5 003b04338e64bdc36d1bb14f3b9ff7ed
BLAKE2b-256 aa859262de39ef5e316387f7d1e6760f18f5b56705642fd8613923f8c3ea994c

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 88477921bd2ac6f91e9aa9f01d8d3d39b25ba7ab4db4bcf713979cf9ba15ded2
MD5 0b728a7ff2a5705d82da0b165f987fb8
BLAKE2b-256 a4f9e968a18119431e4c99140a8b194410fcabf2e58bcd1f58d8529984def6ca

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 88eb65e66f63aac40e5defc34b493e22659dcf42dd3919ec9b07fd72dec2c7a0
MD5 4cf93fe1ee67fa078d9a55e5e6f15206
BLAKE2b-256 a1e6e639d031ab36335ebb4e207f96532592b2b0d9961036ab729682a1fe467d

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fda0b18ec0a82694d7a196faf840b335be6279b7fb447faaf66ff6241dd726c1
MD5 ff43c4beeabbfede7a76205aa2c11555
BLAKE2b-256 241e48f7807821c280ac0b96ef3caffaf6f6ff566a4f8eff31d9f99adfd315ac

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 7eb6c19c5be8f83f506947ee1dcb1574493d68ee7b1b866ed7d39dd960ba79d3
MD5 3e7a89caa1788017a1e738734c13c3b6
BLAKE2b-256 76f8968a39028358829d4c134486218b07ccb0f1a32e9a2523f3287d59a87161

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 1b9864a721c7a52d5d4c17b996202e06cbcaeb7b3ae0c623dfc25947af8d2df9
MD5 752fa05f1c7c06d7718abd75fb9b9fb6
BLAKE2b-256 0491465888fb2de2b8abdda07fcd9d53ae682a763d1d9c534383127184254143

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a9ee5fa77dfa6c0ee875758a0c39ba2eca048bc5cd59a80c784d9b1df6d72da5
MD5 571b99d787796ca80b037d858a3226ad
BLAKE2b-256 fc7bc14a21d33bffb56752e8284602210e7b71030a814747d76170c634e97d8f

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 d59553c290fe41d48e09a65622aee628dc0e3b6cb2b51767d1cfc75e67d87824
MD5 1889a3b2ce1a38392ffc4de29ea0b580
BLAKE2b-256 cc87f876eb120b1b2bc8a96047c2c7605ec6f414cf60fd9911617237f23aed4d

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 6a8d2f4cac6f48bbd1b7d5c8f0c4472a05ea81c5380657ac27e71632ec3d39ad
MD5 c1efbb41942da0050024886111d93ff3
BLAKE2b-256 308fd76d108507df4fe077b5a6949fb49696731b09de44294b9b1d484ebf8d12

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d34b4d3fd0bea0e00dcb01edacaa86d87da7ee108a143f92ce88dc99156c7251
MD5 c9c5ecfbf250156cfa218fdd6c21c1e4
BLAKE2b-256 1c95363d04bc129b07a97613c4d980df4d00d65f1d4dda80f4efb5df4092dfa2

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 d60a4bb5c8f3869a1aa2a89742a500551924084eae3c865bf7af67566ebb4371
MD5 3b25db23d4e28f38bb94a7bb869e7f99
BLAKE2b-256 61ae7c6d0ac95b818ffa6aa5431dc92eefe590574516067174e784bf5523c8fa

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 9d7677a2be06674c1f35d3795e3dcbc0f3d49f73770d10d239e7e75d3b0d68c0
MD5 1e0b776c516da144ffdd335715ca8499
BLAKE2b-256 77263288a2b53b14047d06bbc55fb33b2f8a8572dfb03183db8d37abd8e54f08

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03ca44057f5a0876e78985c4cb21609a2948f586431bf684d986e83f014635ed
MD5 568499686d287b20dcdae8fa6cc095ec
BLAKE2b-256 81667b9eabf3472b578ad8a115dae000b4da0ee580f17fc1bdac8e78fc59d63b

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 12c07da92ea1df68fe6d4de190ba1a7be2f29f33d0d1fcb29829c1e20afc7ed4
MD5 a9b08cd2e0348a6abc7283c322522228
BLAKE2b-256 bc9c78db87bfc355bac44b1b2c62b647a86404a9cf53705015188578dada076a

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 bc315f07345ce2621e6af508037b474afdf72fb1a43747725542c11021970a6d
MD5 163dac84ba6de452e05fe3f1756b67b8
BLAKE2b-256 3820d679b940f1c46a7f93b0951b2421b96c2975f8f1f6807de665940ad6a97a

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2c7dde7676e75c14e323035ab7c7a022b752c4abc2eb9ced04a13bdb3067e13
MD5 fd546f11ad0d960cf51d7343587aa47e
BLAKE2b-256 53150317f50a0c463404ed8225bbfc7b4b2fcef73601d24267079a21763f2c28

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp38-cp38-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp38-cp38-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 be56ef6129d3d3a637512a97d2dd1cd5e26c9fa374b4ad9b65b531c9f6867a11
MD5 3c272ca563f2309f501752559d886bbd
BLAKE2b-256 f3e32bb76fb706bd020ccaed0340530e34c00adebbf1eedb7a7c579944a56875

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 34de8315f8d0ac1d0a3ac39b8dcf6f37f09d7c36d8fdf434daf4b56eaa4e1339
MD5 c38c02111ab19763c82338e7bde81e10
BLAKE2b-256 2da5b7014717954bc62232434d69bf5f8347832fe42beedbc1ba272d9c4be497

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a16bc942d0cf4e73b5eb8b5128ed5a461d08285eb424e67f48e99ae85892bedb
MD5 44fc1e05165fa67fc2767ef80875ce59
BLAKE2b-256 46d8d921cd3fae21e7623faee57984dfcf5fccdd43874e44f343005e1bfc4bda

See more details on using hashes here.

File details

Details for the file tossicat_python-0.1.2-cp37-cp37m-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for tossicat_python-0.1.2-cp37-cp37m-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 a89f2d5d2252cb3d7d0c1315bab9dd5c7620b96b8a55ae3c55b5a323a5f67265
MD5 131b2dd0b298b725acc2a29d69002959
BLAKE2b-256 8fca98f5259612b4913e102a4e3a478b814795ffbfb095413b3b194c91cfdde7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page