processtitle 0.1.0__tar.gz → 1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {processtitle-0.1.0/src/processtitle.egg-info → processtitle-1.0}/PKG-INFO +14 -7
- {processtitle-0.1.0 → processtitle-1.0}/README.md +12 -5
- {processtitle-0.1.0 → processtitle-1.0/processtitle.egg-info}/PKG-INFO +14 -7
- {processtitle-0.1.0/src → processtitle-1.0}/processtitle.egg-info/SOURCES.txt +5 -5
- {processtitle-0.1.0/src → processtitle-1.0}/processtitle.egg-info/top_level.txt +0 -1
- {processtitle-0.1.0 → processtitle-1.0}/pyproject.toml +6 -4
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/common.h +4 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/linux.cpp +5 -2
- {processtitle-0.1.0 → processtitle-1.0}/src/processtitle/__init__.py +1 -1
- {processtitle-0.1.0 → processtitle-1.0}/Acknowledgments.md +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/LICENSE +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/MANIFEST.in +0 -0
- {processtitle-0.1.0/src → processtitle-1.0}/processtitle.egg-info/dependency_links.txt +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/setup.cfg +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/setup.py +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/bsd.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/clobber.cpp +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/clobber.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/darwin.cpp +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/darwin.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/apple_cf_ptr.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/common.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/intrusive_shared_ptr.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/python_ptr.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/pylib/arguments.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/pylib/errors.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/pylib/locking.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/pylib/marshalling.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/pylib/method.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/pylib/util.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/linux.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/logger.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/main.cpp +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/pch.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/solaris.cpp +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/solaris.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/win.cpp +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/cpp/win.h +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/extension.cpp +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/processtitle/_processtitle.pyi +0 -0
- {processtitle-0.1.0 → processtitle-1.0}/src/processtitle/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: processtitle
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.0
|
|
4
4
|
Summary: Customize process "title" as reported by ps and similar tools
|
|
5
5
|
Author-email: Eugene Gershnik <gershnik@hotmail.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://github.com/gershnik/processtitle
|
|
|
9
9
|
Project-URL: Issues, https://github.com/gershnik/processtitle/issues
|
|
10
10
|
Project-URL: Changelog, https://github.com/gershnik/processtitle/blob/master/CHANGELOG.md
|
|
11
11
|
Keywords: setproctitle,proctitle,process title,process name
|
|
12
|
-
Classifier: Development Status ::
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
13
|
Classifier: Operating System :: POSIX :: Linux
|
|
14
14
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
15
|
Classifier: Operating System :: Microsoft :: Windows
|
|
@@ -36,6 +36,12 @@ Dynamic: license-file
|
|
|
36
36
|
|
|
37
37
|
# processtitle
|
|
38
38
|
|
|
39
|
+
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
40
|
+
[](https://www.python.org/downloads/release/python-3100/)
|
|
41
|
+
[](https://pypi.org/project/processtitle)
|
|
42
|
+
[](https://pepy.tech/projects/processtitle)
|
|
43
|
+
|
|
44
|
+
|
|
39
45
|
This Python extension module allows you to customize process "title" as reported by `ps`, `top`, Activity Monitor,
|
|
40
46
|
Task Manager and similar tools.
|
|
41
47
|
|
|
@@ -77,7 +83,7 @@ on ancient Linux kernels, Windows XP etc. etc. If you are stuck with a very old
|
|
|
77
83
|
|
|
78
84
|
## Requirements
|
|
79
85
|
|
|
80
|
-
* Python >= 3.10 capable of loading native extensions
|
|
86
|
+
* Python >= 3.10 capable of loading native extensions. In particular, CPython, PyPy and GraalPy are all supported.
|
|
81
87
|
* If your platform doesn't have a binary wheel available, you will need:
|
|
82
88
|
* A C++ compiler capable of compiling C++20 (GCC 10.2 or above and CLang 13 or above are known to work)
|
|
83
89
|
* Python development libraries available (like `python3-dev` package in most Linux distributions)
|
|
@@ -170,13 +176,13 @@ In addition:
|
|
|
170
176
|
### Linux
|
|
171
177
|
|
|
172
178
|
On Linux you will be able to see the process title in the output of `ps` or `top` commands, as well, as with any other
|
|
173
|
-
tool that displays process info.
|
|
174
|
-
by the original process executable name. For example: `{python3} your title`.
|
|
179
|
+
tool that displays process info.
|
|
175
180
|
|
|
176
181
|
To change the title, `processtitle` uses the following methods:
|
|
177
|
-
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call
|
|
178
|
-
*
|
|
182
|
+
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
|
|
183
|
+
* [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html) call.
|
|
179
184
|
|
|
185
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
180
186
|
|
|
181
187
|
### macOS
|
|
182
188
|
|
|
@@ -203,6 +209,7 @@ To change the title, `processtitle` uses the following methods:
|
|
|
203
209
|
* Changing the content of native (not Python's) `argv[0]` (while preserving the rest of `argv` and relocating `environ`).
|
|
204
210
|
* If `fork_safe_only` is `False` undocumented Launch Services calls
|
|
205
211
|
|
|
212
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
206
213
|
|
|
207
214
|
### Windows
|
|
208
215
|
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# processtitle
|
|
2
2
|
|
|
3
|
+
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
4
|
+
[](https://www.python.org/downloads/release/python-3100/)
|
|
5
|
+
[](https://pypi.org/project/processtitle)
|
|
6
|
+
[](https://pepy.tech/projects/processtitle)
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
This Python extension module allows you to customize process "title" as reported by `ps`, `top`, Activity Monitor,
|
|
4
10
|
Task Manager and similar tools.
|
|
5
11
|
|
|
@@ -41,7 +47,7 @@ on ancient Linux kernels, Windows XP etc. etc. If you are stuck with a very old
|
|
|
41
47
|
|
|
42
48
|
## Requirements
|
|
43
49
|
|
|
44
|
-
* Python >= 3.10 capable of loading native extensions
|
|
50
|
+
* Python >= 3.10 capable of loading native extensions. In particular, CPython, PyPy and GraalPy are all supported.
|
|
45
51
|
* If your platform doesn't have a binary wheel available, you will need:
|
|
46
52
|
* A C++ compiler capable of compiling C++20 (GCC 10.2 or above and CLang 13 or above are known to work)
|
|
47
53
|
* Python development libraries available (like `python3-dev` package in most Linux distributions)
|
|
@@ -134,13 +140,13 @@ In addition:
|
|
|
134
140
|
### Linux
|
|
135
141
|
|
|
136
142
|
On Linux you will be able to see the process title in the output of `ps` or `top` commands, as well, as with any other
|
|
137
|
-
tool that displays process info.
|
|
138
|
-
by the original process executable name. For example: `{python3} your title`.
|
|
143
|
+
tool that displays process info.
|
|
139
144
|
|
|
140
145
|
To change the title, `processtitle` uses the following methods:
|
|
141
|
-
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call
|
|
142
|
-
*
|
|
146
|
+
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
|
|
147
|
+
* [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html) call.
|
|
143
148
|
|
|
149
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
144
150
|
|
|
145
151
|
### macOS
|
|
146
152
|
|
|
@@ -167,6 +173,7 @@ To change the title, `processtitle` uses the following methods:
|
|
|
167
173
|
* Changing the content of native (not Python's) `argv[0]` (while preserving the rest of `argv` and relocating `environ`).
|
|
168
174
|
* If `fork_safe_only` is `False` undocumented Launch Services calls
|
|
169
175
|
|
|
176
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
170
177
|
|
|
171
178
|
### Windows
|
|
172
179
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: processtitle
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.0
|
|
4
4
|
Summary: Customize process "title" as reported by ps and similar tools
|
|
5
5
|
Author-email: Eugene Gershnik <gershnik@hotmail.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://github.com/gershnik/processtitle
|
|
|
9
9
|
Project-URL: Issues, https://github.com/gershnik/processtitle/issues
|
|
10
10
|
Project-URL: Changelog, https://github.com/gershnik/processtitle/blob/master/CHANGELOG.md
|
|
11
11
|
Keywords: setproctitle,proctitle,process title,process name
|
|
12
|
-
Classifier: Development Status ::
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
13
|
Classifier: Operating System :: POSIX :: Linux
|
|
14
14
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
15
|
Classifier: Operating System :: Microsoft :: Windows
|
|
@@ -36,6 +36,12 @@ Dynamic: license-file
|
|
|
36
36
|
|
|
37
37
|
# processtitle
|
|
38
38
|
|
|
39
|
+
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
40
|
+
[](https://www.python.org/downloads/release/python-3100/)
|
|
41
|
+
[](https://pypi.org/project/processtitle)
|
|
42
|
+
[](https://pepy.tech/projects/processtitle)
|
|
43
|
+
|
|
44
|
+
|
|
39
45
|
This Python extension module allows you to customize process "title" as reported by `ps`, `top`, Activity Monitor,
|
|
40
46
|
Task Manager and similar tools.
|
|
41
47
|
|
|
@@ -77,7 +83,7 @@ on ancient Linux kernels, Windows XP etc. etc. If you are stuck with a very old
|
|
|
77
83
|
|
|
78
84
|
## Requirements
|
|
79
85
|
|
|
80
|
-
* Python >= 3.10 capable of loading native extensions
|
|
86
|
+
* Python >= 3.10 capable of loading native extensions. In particular, CPython, PyPy and GraalPy are all supported.
|
|
81
87
|
* If your platform doesn't have a binary wheel available, you will need:
|
|
82
88
|
* A C++ compiler capable of compiling C++20 (GCC 10.2 or above and CLang 13 or above are known to work)
|
|
83
89
|
* Python development libraries available (like `python3-dev` package in most Linux distributions)
|
|
@@ -170,13 +176,13 @@ In addition:
|
|
|
170
176
|
### Linux
|
|
171
177
|
|
|
172
178
|
On Linux you will be able to see the process title in the output of `ps` or `top` commands, as well, as with any other
|
|
173
|
-
tool that displays process info.
|
|
174
|
-
by the original process executable name. For example: `{python3} your title`.
|
|
179
|
+
tool that displays process info.
|
|
175
180
|
|
|
176
181
|
To change the title, `processtitle` uses the following methods:
|
|
177
|
-
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call
|
|
178
|
-
*
|
|
182
|
+
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
|
|
183
|
+
* [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html) call.
|
|
179
184
|
|
|
185
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
180
186
|
|
|
181
187
|
### macOS
|
|
182
188
|
|
|
@@ -203,6 +209,7 @@ To change the title, `processtitle` uses the following methods:
|
|
|
203
209
|
* Changing the content of native (not Python's) `argv[0]` (while preserving the rest of `argv` and relocating `environ`).
|
|
204
210
|
* If `fork_safe_only` is `False` undocumented Launch Services calls
|
|
205
211
|
|
|
212
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
206
213
|
|
|
207
214
|
### Windows
|
|
208
215
|
|
|
@@ -4,6 +4,10 @@ MANIFEST.in
|
|
|
4
4
|
README.md
|
|
5
5
|
pyproject.toml
|
|
6
6
|
setup.py
|
|
7
|
+
processtitle.egg-info/PKG-INFO
|
|
8
|
+
processtitle.egg-info/SOURCES.txt
|
|
9
|
+
processtitle.egg-info/dependency_links.txt
|
|
10
|
+
processtitle.egg-info/top_level.txt
|
|
7
11
|
src/extension.cpp
|
|
8
12
|
src/cpp/bsd.h
|
|
9
13
|
src/cpp/clobber.cpp
|
|
@@ -32,8 +36,4 @@ src/cpp/external/pylib/method.h
|
|
|
32
36
|
src/cpp/external/pylib/util.h
|
|
33
37
|
src/processtitle/__init__.py
|
|
34
38
|
src/processtitle/_processtitle.pyi
|
|
35
|
-
src/processtitle/py.typed
|
|
36
|
-
src/processtitle.egg-info/PKG-INFO
|
|
37
|
-
src/processtitle.egg-info/SOURCES.txt
|
|
38
|
-
src/processtitle.egg-info/dependency_links.txt
|
|
39
|
-
src/processtitle.egg-info/top_level.txt
|
|
39
|
+
src/processtitle/py.typed
|
|
@@ -5,13 +5,15 @@ requires = [
|
|
|
5
5
|
]
|
|
6
6
|
build-backend = "setuptools.build_meta"
|
|
7
7
|
|
|
8
|
+
[tool.setuptools]
|
|
9
|
+
packages = ["processtitle"]
|
|
10
|
+
|
|
11
|
+
[tool.setuptools.package-dir]
|
|
12
|
+
processtitle = "src/processtitle"
|
|
8
13
|
|
|
9
14
|
[tool.setuptools.dynamic]
|
|
10
15
|
version = {attr = "processtitle.__version__"}
|
|
11
16
|
|
|
12
|
-
[tool.setuptools.packages.find]
|
|
13
|
-
where = ["src"]
|
|
14
|
-
|
|
15
17
|
[tool.pytest.ini_options]
|
|
16
18
|
testpaths = ["tests"]
|
|
17
19
|
|
|
@@ -31,7 +33,7 @@ keywords = [
|
|
|
31
33
|
'setproctitle', 'proctitle', 'process title', 'process name'
|
|
32
34
|
]
|
|
33
35
|
classifiers = [
|
|
34
|
-
"Development Status ::
|
|
36
|
+
"Development Status :: 5 - Production/Stable",
|
|
35
37
|
|
|
36
38
|
"Operating System :: POSIX :: Linux",
|
|
37
39
|
"Operating System :: MacOS :: MacOS X",
|
|
@@ -27,6 +27,8 @@ struct Overloads : Ts... { using Ts::operator()...; };
|
|
|
27
27
|
template<class T>
|
|
28
28
|
constexpr bool dependentFalse = false;
|
|
29
29
|
|
|
30
|
+
#ifndef _WIN32
|
|
31
|
+
|
|
30
32
|
class FileDescriptor {
|
|
31
33
|
public:
|
|
32
34
|
FileDescriptor() noexcept = default;
|
|
@@ -114,3 +116,5 @@ inline auto readFile(const FileDescriptor & desc, void * buf, io_size_t nbyte) -
|
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
#endif
|
|
119
|
+
|
|
120
|
+
#endif
|
|
@@ -233,11 +233,14 @@ static bool usePrSetName(const char * title) {
|
|
|
233
233
|
bool linuxSetProcessTitle(const char * title) {
|
|
234
234
|
|
|
235
235
|
try {
|
|
236
|
+
bool ret = false;
|
|
236
237
|
if (useSetMm(title))
|
|
237
|
-
|
|
238
|
+
ret = true;
|
|
238
239
|
|
|
239
240
|
if (usePrSetName(title))
|
|
240
|
-
|
|
241
|
+
ret = true;
|
|
242
|
+
|
|
243
|
+
return ret;
|
|
241
244
|
|
|
242
245
|
} catch(std::exception & ex) {
|
|
243
246
|
logDebug(std::string("unhandled exception in linuxSetProcessTitle: ") + ex.what());
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/apple_cf_ptr.h
RENAMED
|
File without changes
|
|
File without changes
|
{processtitle-0.1.0 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/intrusive_shared_ptr.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|