Name | NPyUtils JSON |
Version |
0.0.2
JSON |
| download |
home_page | None |
Summary | A simple Python Utils Pkg |
upload_time | 2025-07-09 13:55:49 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | MIT License
Copyright (c) 2025 namo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
utility
python
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# NPyUtils
`NPyUtils`는 간단한 Util 기능을 제공하는 Python 패키지입니다.
# NPyUtils
```
putin(string, count, sel, front)
# string에 어떤 문자를 넣을 지,
# count에 몇개의 문자를 넣을 지,
# sel에 어떤 문자에 넣을 지,
# front 'True'시 앞, 'False'시 뒤에 넣음
```
# LstUtils
```
#(index 0부터)
gop(value) # 리스트의 있는 수를 모두 곱함
nanu(value) # 리스트의 있는 수를 모두 나눔
minus(value) # 리스트의 있는 수를 모두 뺌
plus(value) # 리스트의 있는 수를 모두 더함
```
# NCaptcha
간단한 캡챠
```
captcha_b1(way)
# way에 ["number", "string", "all"] 중 하나 선택
# number: 숫자만
# string: 영어 대소문자만
# all: 전체
# return 값은 문자열로 ex: "123456", "exQjde", "ie67Ex"
# 길이는 6
```
## ⚠️ 주의사항:
``위 NCaptcha [b1]에 해당``
- 이 코드는 단일 사용자 기준으로 작동합니다.
- 여러 사용자가 동시에 사용하거나, 웹 서버 등에서 공유 변수(cap)를 사용할 경우 예상치 못한 동작이 발생할 수 있습니다.
- 사용자마다 개별 `var` 값을 생성/저장하여 처리해야 하며, 웹 기반에서 사용할 경우 세션 또는 사용자 고유한 식별자를 사용해 관리해야 합니다.
## 설치
```bash
pip install NPyUtils
Raw data
{
"_id": null,
"home_page": null,
"name": "NPyUtils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "utility, python",
"author": null,
"author_email": "namo <none@none.com>",
"download_url": "https://files.pythonhosted.org/packages/e5/33/12b445ebd7bfb2ba30d2772bde5d6ff59f0f4effc5dea9b2c51825cf6a01/npyutils-0.0.2.tar.gz",
"platform": null,
"description": "# NPyUtils\r\n\r\n`NPyUtils`\ub294 \uac04\ub2e8\ud55c Util \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\ub294 Python \ud328\ud0a4\uc9c0\uc785\ub2c8\ub2e4.\r\n\r\n# NPyUtils\r\n```\r\nputin(string, count, sel, front) \r\n\r\n# string\uc5d0 \uc5b4\ub5a4 \ubb38\uc790\ub97c \ub123\uc744 \uc9c0, \r\n# count\uc5d0 \uba87\uac1c\uc758 \ubb38\uc790\ub97c \ub123\uc744 \uc9c0,\r\n# sel\uc5d0 \uc5b4\ub5a4 \ubb38\uc790\uc5d0 \ub123\uc744 \uc9c0,\r\n# front 'True'\uc2dc \uc55e, 'False'\uc2dc \ub4a4\uc5d0 \ub123\uc74c\r\n```\r\n\r\n# LstUtils\r\n```\r\n#(index 0\ubd80\ud130)\r\n\r\ngop(value) # \ub9ac\uc2a4\ud2b8\uc758 \uc788\ub294 \uc218\ub97c \ubaa8\ub450 \uacf1\ud568\r\nnanu(value) # \ub9ac\uc2a4\ud2b8\uc758 \uc788\ub294 \uc218\ub97c \ubaa8\ub450 \ub098\ub214\r\nminus(value) # \ub9ac\uc2a4\ud2b8\uc758 \uc788\ub294 \uc218\ub97c \ubaa8\ub450 \ube8c\r\nplus(value) # \ub9ac\uc2a4\ud2b8\uc758 \uc788\ub294 \uc218\ub97c \ubaa8\ub450 \ub354\ud568\r\n```\r\n\r\n# NCaptcha\r\n\uac04\ub2e8\ud55c \ucea1\ucc60\r\n```\r\ncaptcha_b1(way) \r\n# way\uc5d0 [\"number\", \"string\", \"all\"] \uc911 \ud558\ub098 \uc120\ud0dd\r\n# number: \uc22b\uc790\ub9cc\r\n# string: \uc601\uc5b4 \ub300\uc18c\ubb38\uc790\ub9cc\r\n# all: \uc804\uccb4\r\n\r\n# return \uac12\uc740 \ubb38\uc790\uc5f4\ub85c ex: \"123456\", \"exQjde\", \"ie67Ex\"\r\n# \uae38\uc774\ub294 6\r\n```\r\n## \u26a0\ufe0f \uc8fc\uc758\uc0ac\ud56d:\r\n``\uc704 NCaptcha [b1]\uc5d0 \ud574\ub2f9``\r\n\r\n- \uc774 \ucf54\ub4dc\ub294 \ub2e8\uc77c \uc0ac\uc6a9\uc790 \uae30\uc900\uc73c\ub85c \uc791\ub3d9\ud569\ub2c8\ub2e4. \r\n- \uc5ec\ub7ec \uc0ac\uc6a9\uc790\uac00 \ub3d9\uc2dc\uc5d0 \uc0ac\uc6a9\ud558\uac70\ub098, \uc6f9 \uc11c\ubc84 \ub4f1\uc5d0\uc11c \uacf5\uc720 \ubcc0\uc218(cap)\ub97c \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \uc608\uc0c1\uce58 \ubabb\ud55c \ub3d9\uc791\uc774 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\r\n\r\n\r\n- \uc0ac\uc6a9\uc790\ub9c8\ub2e4 \uac1c\ubcc4 `var` \uac12\uc744 \uc0dd\uc131/\uc800\uc7a5\ud558\uc5ec \ucc98\ub9ac\ud574\uc57c \ud558\uba70, \uc6f9 \uae30\ubc18\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uacbd\uc6b0 \uc138\uc158 \ub610\ub294 \uc0ac\uc6a9\uc790 \uace0\uc720\ud55c \uc2dd\ubcc4\uc790\ub97c \uc0ac\uc6a9\ud574 \uad00\ub9ac\ud574\uc57c \ud569\ub2c8\ub2e4.\r\n\r\n## \uc124\uce58\r\n\r\n```bash\r\npip install NPyUtils\r\n",
"bugtrack_url": null,
"license": "MIT License\r\n \r\n Copyright (c) 2025 namo\r\n \r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.",
"summary": "A simple Python Utils Pkg",
"version": "0.0.2",
"project_urls": null,
"split_keywords": [
"utility",
" python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e37b9472b491157098e42ef99fdf823f8a670e8b6c42f5ed3efe6e20d58b4546",
"md5": "a3acdb28df61a40c7784ee12c9cc911d",
"sha256": "da6dcc5fe2267f3305719f1cd942abfdb801c5a20e62f59ff03efab2571b737c"
},
"downloads": -1,
"filename": "npyutils-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a3acdb28df61a40c7784ee12c9cc911d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4869,
"upload_time": "2025-07-09T13:55:48",
"upload_time_iso_8601": "2025-07-09T13:55:48.246766Z",
"url": "https://files.pythonhosted.org/packages/e3/7b/9472b491157098e42ef99fdf823f8a670e8b6c42f5ed3efe6e20d58b4546/npyutils-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e53312b445ebd7bfb2ba30d2772bde5d6ff59f0f4effc5dea9b2c51825cf6a01",
"md5": "1241073d3010a83af4925b3a182f314a",
"sha256": "9c9873e259c4a52ff1ea18f4ac55521f20b3ef965158dca03660958f99137f14"
},
"downloads": -1,
"filename": "npyutils-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "1241073d3010a83af4925b3a182f314a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3595,
"upload_time": "2025-07-09T13:55:49",
"upload_time_iso_8601": "2025-07-09T13:55:49.095908Z",
"url": "https://files.pythonhosted.org/packages/e5/33/12b445ebd7bfb2ba30d2772bde5d6ff59f0f4effc5dea9b2c51825cf6a01/npyutils-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-09 13:55:49",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "npyutils"
}