processtitle 0.1.0__tar.gz → 0.2__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-0.2}/PKG-INFO +6 -4
- {processtitle-0.1.0 → processtitle-0.2}/README.md +5 -3
- {processtitle-0.1.0 → processtitle-0.2/processtitle.egg-info}/PKG-INFO +6 -4
- {processtitle-0.1.0/src → processtitle-0.2}/processtitle.egg-info/SOURCES.txt +5 -5
- {processtitle-0.1.0/src → processtitle-0.2}/processtitle.egg-info/top_level.txt +0 -1
- {processtitle-0.1.0 → processtitle-0.2}/pyproject.toml +5 -3
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/linux.cpp +5 -2
- {processtitle-0.1.0 → processtitle-0.2}/src/processtitle/__init__.py +1 -1
- {processtitle-0.1.0 → processtitle-0.2}/Acknowledgments.md +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/LICENSE +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/MANIFEST.in +0 -0
- {processtitle-0.1.0/src → processtitle-0.2}/processtitle.egg-info/dependency_links.txt +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/setup.cfg +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/setup.py +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/bsd.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/clobber.cpp +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/clobber.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/common.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/darwin.cpp +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/darwin.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/intrusive_shared_ptr/apple_cf_ptr.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/intrusive_shared_ptr/common.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/intrusive_shared_ptr/intrusive_shared_ptr.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/intrusive_shared_ptr/python_ptr.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/pylib/arguments.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/pylib/errors.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/pylib/locking.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/pylib/marshalling.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/pylib/method.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/pylib/util.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/linux.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/logger.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/main.cpp +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/pch.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/solaris.cpp +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/solaris.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/win.cpp +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/cpp/win.h +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/extension.cpp +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/processtitle/_processtitle.pyi +0 -0
- {processtitle-0.1.0 → processtitle-0.2}/src/processtitle/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: processtitle
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
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
|
|
@@ -171,12 +171,13 @@ In addition:
|
|
|
171
171
|
|
|
172
172
|
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
173
|
tool that displays process info. Note that on some Linux variants (e.g. Alpine) the title might be prefixed or suffixed
|
|
174
|
-
by the original process executable name. For example: `{python3} your title`.
|
|
174
|
+
by the original process executable name. For example: `{python3} your title`.
|
|
175
175
|
|
|
176
176
|
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
|
-
*
|
|
177
|
+
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
|
|
178
|
+
* [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html)
|
|
179
179
|
|
|
180
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
180
181
|
|
|
181
182
|
### macOS
|
|
182
183
|
|
|
@@ -203,6 +204,7 @@ To change the title, `processtitle` uses the following methods:
|
|
|
203
204
|
* Changing the content of native (not Python's) `argv[0]` (while preserving the rest of `argv` and relocating `environ`).
|
|
204
205
|
* If `fork_safe_only` is `False` undocumented Launch Services calls
|
|
205
206
|
|
|
207
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
206
208
|
|
|
207
209
|
### Windows
|
|
208
210
|
|
|
@@ -135,12 +135,13 @@ In addition:
|
|
|
135
135
|
|
|
136
136
|
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
137
|
tool that displays process info. Note that on some Linux variants (e.g. Alpine) the title might be prefixed or suffixed
|
|
138
|
-
by the original process executable name. For example: `{python3} your title`.
|
|
138
|
+
by the original process executable name. For example: `{python3} your title`.
|
|
139
139
|
|
|
140
140
|
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
|
-
*
|
|
141
|
+
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
|
|
142
|
+
* [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html)
|
|
143
143
|
|
|
144
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
144
145
|
|
|
145
146
|
### macOS
|
|
146
147
|
|
|
@@ -167,6 +168,7 @@ To change the title, `processtitle` uses the following methods:
|
|
|
167
168
|
* Changing the content of native (not Python's) `argv[0]` (while preserving the rest of `argv` and relocating `environ`).
|
|
168
169
|
* If `fork_safe_only` is `False` undocumented Launch Services calls
|
|
169
170
|
|
|
171
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
170
172
|
|
|
171
173
|
### Windows
|
|
172
174
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: processtitle
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
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
|
|
@@ -171,12 +171,13 @@ In addition:
|
|
|
171
171
|
|
|
172
172
|
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
173
|
tool that displays process info. Note that on some Linux variants (e.g. Alpine) the title might be prefixed or suffixed
|
|
174
|
-
by the original process executable name. For example: `{python3} your title`.
|
|
174
|
+
by the original process executable name. For example: `{python3} your title`.
|
|
175
175
|
|
|
176
176
|
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
|
-
*
|
|
177
|
+
* [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
|
|
178
|
+
* [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html)
|
|
179
179
|
|
|
180
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
180
181
|
|
|
181
182
|
### macOS
|
|
182
183
|
|
|
@@ -203,6 +204,7 @@ To change the title, `processtitle` uses the following methods:
|
|
|
203
204
|
* Changing the content of native (not Python's) `argv[0]` (while preserving the rest of `argv` and relocating `environ`).
|
|
204
205
|
* If `fork_safe_only` is `False` undocumented Launch Services calls
|
|
205
206
|
|
|
207
|
+
`processtitle.set_to()` returns `True` if at least one of these methods succeeded.
|
|
206
208
|
|
|
207
209
|
### Windows
|
|
208
210
|
|
|
@@ -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
|
|
|
@@ -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
|
|
File without changes
|
{processtitle-0.1.0 → processtitle-0.2}/src/cpp/external/intrusive_shared_ptr/apple_cf_ptr.h
RENAMED
|
File without changes
|
|
File without changes
|
{processtitle-0.1.0 → processtitle-0.2}/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
|