libxmmanager 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,5 @@
1
+ from .main import xmrig_start, xmrig_stop, mining_controller, quit
2
+
3
+ __all__ = ["xmrig_start", "xmrig_stop", "mining_controller", "quit"]
4
+ __version__ = "0.1.0"
5
+ __author__ = "numycode"
libxmmanager/main.py ADDED
@@ -0,0 +1,20 @@
1
+ import subprocess
2
+ import sys
3
+
4
+ def xmrig_start(xmrig_status, xmrig_path, args):
5
+ subprocess.Popen(xmrig_path + " -B " + args, shell=True)
6
+ return True
7
+ def xmrig_stop(xmrig_status, kill_command):
8
+ subprocess.Popen(kill_command, shell=True)
9
+ return False
10
+
11
+ def mining_controller():
12
+ global xmrig_status
13
+ if xmrig_status:
14
+ xmrig_status = xmrig_start(xmrig_status)
15
+ elif not xmrig_status:
16
+ xmrig_status = xmrig_stop(xmrig_status)
17
+ def quit():
18
+ global xmrig_status
19
+ xmrig_status = xmrig_stop(xmrig_status)
20
+ sys.exit()
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.4
2
+ Name: libxmmanager
3
+ Version: 0.1.0
4
+ Summary: The library that powers XMManager.
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://codeberg.org/numycode/libxmmanager
7
+ Project-URL: Issues, https://codeberg.org/numycode/libxmmanager/issues
8
+ Requires-Python: ==3.12.13
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: license-file
12
+
13
+ # libxmmanager
14
+ libxmmanager will power tools like XMManager-MB and other frontends empowering you to mine easily.
15
+
16
+
17
+ ## No AI Notice
18
+ No AI was used in the developing of this project.
19
+
20
+ ## Contributers
21
+ - [@rocklake](https://codeberg.org/rocklake/) ([rocklake's github](https://github.com/rocklake/)) - Helped get the code into a usable state since the whole codebase was crumbling
22
+ <!--
23
+ ## This project is now on Codeberg
24
+
25
+ You can now find this project at [CodeBerg](https://codeberg.org/numycode/libxmmanager/) instead.
26
+
27
+ Any use of this project's code by GitHub Copilot, past or present, is done without my permission. I do not consent to GitHub's use of this project's code in Copilot.
28
+ ^no github mirror yet -->
@@ -0,0 +1,7 @@
1
+ libxmmanager/__init__.py,sha256=T38v7kem9X8khM36NaWmBXBQQ8ca9S1XWuTAefyag9Q,182
2
+ libxmmanager/main.py,sha256=YPjeOncukgsfjb_E4CaV3vqIkAcymrN92p1lPvgXs6Y,525
3
+ libxmmanager-0.1.0.dist-info/licenses/LICENSE,sha256=k44Hc897Pe6do3KGNQupGK_l-9j8rLjGsMheixKUxsM,1065
4
+ libxmmanager-0.1.0.dist-info/METADATA,sha256=7BhrBCYf2zC55iPMcptpYDeRbuMMsm2NjAli41OnpeU,1085
5
+ libxmmanager-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
6
+ libxmmanager-0.1.0.dist-info/top_level.txt,sha256=XAsSyYBVjTlWkbeecxc6R9T6Qcj4S_sfj31UZ9hSWaE,13
7
+ libxmmanager-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 numycode
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ libxmmanager