2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
sys_prctl: Linux syscall prctl setting the process name and the thread name
# @Time : 2021/11/18 20:06
# @Author : tk
# @FileName: test_prctl.py
import sys_prctl
import time
import os
'''
sys_prctl: Linux syscall prctl setting the process name and the thread name
sys_prctl had test pass at linux python3.6,python3.7,python3.8,python3.9
support only for linux
'''
def test_prctl():
# 参见linux prctl
# sys_prctl.prctl
pass
#set current process id
def test_process():
#get process name
name = sys_prctl.getprocname()
print(name)
# set process name
name = "my_process"
sys_prctl.setprocname(name)
#get process name
name = sys_prctl.getprocname()
print(name)
print(os.getpid())
time.sleep(10 * 60)
#ps -ef | grep my_process
def test_process_with_tid():
#pthread_id is not thread id , it is c pthread id
pthread_id = -1
print('pthread_id:',pthread_id)
# get process name
name = sys_prctl.getprocname(pthread_id=pthread_id)
print(name)
# set process name
name = "my_process"
# tid thread id
sys_prctl.setprocname(name, pthread_id=pthread_id)
# get process name
name = sys_prctl.getprocname(pthread_id=pthread_id)
print(name)
print(os.getpid())
time.sleep(10 * 60)
#ps -ef | grep my_process
if __name__ == '__main__':
test_process()
Metadata
Release files for sys-prctl 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
2 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| sys_prctl-0.0.4-cp310-cp310-manylinux2014_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.17+ x86-64 | Details |
| sys_prctl-0.0.4-cp310-cp310-manylinux2014_aarch64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.17+ ARM64 | Details |
| sys_prctl-0.0.4-cp39-cp39-manylinux2014_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.17+ x86-64 | Details |
| sys_prctl-0.0.4-cp39-cp39-manylinux2014_aarch64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.17+ ARM64 | Details |
| sys_prctl-0.0.4-cp38-cp38-manylinux2014_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.17+ x86-64 | Details |
| sys_prctl-0.0.4-cp38-cp38-manylinux2014_aarch64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.17+ ARM64 | Details |
| sys_prctl-0.0.4-cp37-cp37m-manylinux2014_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.17+ x86-64 | Details |
| sys_prctl-0.0.4-cp37-cp37m-manylinux2014_aarch64.whl | CPython 3.7 | CPython 3.7 pymalloc | Linux glibc 2.17+ ARM64 | Details |
| sys_prctl-0.0.4-cp36-cp36m-manylinux2014_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.17+ x86-64 | Details |
| sys_prctl-0.0.4-cp36-cp36m-manylinux2014_aarch64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.17+ ARM64 | Details |
Total release size: 630.9 kB
Release files / sys_prctl-0.0.4-cp310-cp310-manylinux2014_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | sys_prctl-0.0.4-cp310-cp310-manylinux2014_x86_64.whl |
|---|---|
| Size | 64.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
1847d092bfec4f1092beea9fea804c3fb22fbcd5db529d2a29735289807af3b1
|
|
BLAKE2b-256 checksum How to use checksums |
86456db88de68eddfe4c1023339d8525f7b4d88645e37d7d018ce388ef328b8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
|
Release files / sys_prctl-0.0.4-cp310-cp310-manylinux2014_aarch64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | sys_prctl-0.0.4-cp310-cp310-manylinux2014_aarch64.whl |
|---|---|
| Size | 62.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
63d80b56d1e7ac6a49e49bb5cf27f55a183032751a7b80289cf4c31ddf2c5daf
|
|
BLAKE2b-256 checksum How to use checksums |
9b05ec514724e10812552216a4b5ae9e1a516dc7c5861fe7b501d75c641a7102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
|
Release files / sys_prctl-0.0.4-cp39-cp39-manylinux2014_x86_64.whl
| Download URL | sys_prctl-0.0.4-cp39-cp39-manylinux2014_x86_64.whl |
|---|---|
| Size | 63.6 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
8ce085eee2118e9c969f891b1a035fa746ef0d4ec8f7748eb2dddcb907eebd9f
|
|
BLAKE2b-256 checksum How to use checksums |
13e9c493f8773638a3bade3047a3d55e31a02b60bf98650f63b1d1cce4f3f79c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sys_prctl-0.0.4-cp39-cp39-manylinux2014_aarch64.whl
| Download URL | sys_prctl-0.0.4-cp39-cp39-manylinux2014_aarch64.whl |
|---|---|
| Size | 62.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
aff15a3bfe973418b10d20e52e0da35b9fac8425cca5b714718805acad72e363
|
|
BLAKE2b-256 checksum How to use checksums |
e4541cc9d46e0ccde5b07afff068371c5060002bae95e5cd96ae8113f69dedaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sys_prctl-0.0.4-cp38-cp38-manylinux2014_x86_64.whl
| Download URL | sys_prctl-0.0.4-cp38-cp38-manylinux2014_x86_64.whl |
|---|---|
| Size | 63.5 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a5a603b292400eee2e06bfbeaf0887b58425df9e1d4e88f9e98ec10f0dd6a09f
|
|
BLAKE2b-256 checksum How to use checksums |
ddb37ac36264b7790bec8ce3e2adb532d0664158bffa43e8572072a863bba78a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sys_prctl-0.0.4-cp38-cp38-manylinux2014_aarch64.whl
| Download URL | sys_prctl-0.0.4-cp38-cp38-manylinux2014_aarch64.whl |
|---|---|
| Size | 62.4 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
3777ee09f9707b3098e35bc1d2f0d1b344520ef5783127a2de897d86824b686d
|
|
BLAKE2b-256 checksum How to use checksums |
f488272c76e18170945dbaff22e91a79fdf731c9ee7b0552907bed73501e15d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sys_prctl-0.0.4-cp37-cp37m-manylinux2014_x86_64.whl
| Download URL | sys_prctl-0.0.4-cp37-cp37m-manylinux2014_x86_64.whl |
|---|---|
| Size | 63.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
087ca6e2c2a718f44ace063d1bfbe49c6cc0051810cea28c8ed9f24cba34cc35
|
|
BLAKE2b-256 checksum How to use checksums |
345395ee9438e6564bb8fc38162df022bda0af242dce1a84cd5e81cbc23a1c78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sys_prctl-0.0.4-cp37-cp37m-manylinux2014_aarch64.whl
| Download URL | sys_prctl-0.0.4-cp37-cp37m-manylinux2014_aarch64.whl |
|---|---|
| Size | 62.8 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
caca769dbef52bc95b94fa53b0ce152affa45c07073cf919e278381a7491ebbf
|
|
BLAKE2b-256 checksum How to use checksums |
045d85d5e8af56534a5a2bf827c1b3ee13479ef2f398110a3d39aafe37480596
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sys_prctl-0.0.4-cp36-cp36m-manylinux2014_x86_64.whl
| Download URL | sys_prctl-0.0.4-cp36-cp36m-manylinux2014_x86_64.whl |
|---|---|
| Size | 63.2 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b69c4e124fe29eebbf5b1ea23c1d30259904893f57ada019d9e10916bcec1fb6
|
|
BLAKE2b-256 checksum How to use checksums |
d743418478dc6b3d3f7875b25f8bd94b241ff8fb333bb9539a0436746e22401d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / sys_prctl-0.0.4-cp36-cp36m-manylinux2014_aarch64.whl
| Download URL | sys_prctl-0.0.4-cp36-cp36m-manylinux2014_aarch64.whl |
|---|---|
| Size | 62.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
59309164702abd55a5ae321746fbf7cf5c57c18978ff09ffa650b2166440fc5d
|
|
BLAKE2b-256 checksum How to use checksums |
75bbb1f1e459e833f66aba28acb25a9478a8e93cfba87c52b15729dad2da2e5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|