py2hackCraft2 1.0.12__tar.gz → 1.0.13__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.
- py2hackCraft2-1.0.13/PKG-INFO +51 -0
- py2hackCraft2-1.0.13/py2hackCraft2.egg-info/PKG-INFO +51 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/setup.py +6 -2
- py2hackCraft2-1.0.12/PKG-INFO +0 -9
- py2hackCraft2-1.0.12/py2hackCraft2.egg-info/PKG-INFO +0 -9
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/README.md +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/py2hackCraft/__init__.py +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/py2hackCraft/material.py +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/py2hackCraft/modules.py +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/py2hackCraft2.egg-info/SOURCES.txt +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/py2hackCraft2.egg-info/dependency_links.txt +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/py2hackCraft2.egg-info/requires.txt +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/py2hackCraft2.egg-info/top_level.txt +0 -0
- {py2hackCraft2-1.0.12 → py2hackCraft2-1.0.13}/setup.cfg +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: py2hackCraft2
|
|
3
|
+
Version: 1.0.13
|
|
4
|
+
Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
|
|
5
|
+
Home-page: https://pypi.org/project/py2hackCraft2/
|
|
6
|
+
Author: Masafumi Terazono
|
|
7
|
+
Author-email: masafumi_t@0x48lab.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: hackCraft2
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
## 概要
|
|
13
|
+
|
|
14
|
+
**py2hackCraft2**はhackCraft2にpythonから接続し命令をするためのライブラリです。
|
|
15
|
+
hackCraft2がどういうものかについて、くわしくはhackCraft2のダウンロードページを参考していただくとして、
|
|
16
|
+
簡単に説明をするとhackCraft2はMinecraft java editionのサーバープラグインです。
|
|
17
|
+
このプラグインを導入すると、Minecraft上でプログラミングができるようになります。
|
|
18
|
+
Minecraftについて何かについてくわしくはインターネットで検索をして調べてください。
|
|
19
|
+
hackCraft2を導入されたMinecraftサーバーに**py2hackCraft2**をつかえばPythonから命令をすることができます。
|
|
20
|
+
|
|
21
|
+
次に、**py2hackCraft2**のインストール方法、それから利用方法を説明します。
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## インストール方法
|
|
25
|
+
|
|
26
|
+
次のコマンドを実行して、プロジェクトをローカルマシンにセットアップします:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
python3 -m pip install py2hackCraft2
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 利用方法
|
|
33
|
+
|
|
34
|
+
以下のコードはシンプルなコードで、ペットをその場でくるくる回らせるように命令するプログラムです。
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from py2hackCraft.modules import Player
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
player = Player("masafumi_t")
|
|
41
|
+
player.login("localhost", 25570)
|
|
42
|
+
|
|
43
|
+
hello = player.getEntity("hello")
|
|
44
|
+
|
|
45
|
+
for i in range(5):
|
|
46
|
+
hello.forward()
|
|
47
|
+
hello.turnRight()
|
|
48
|
+
|
|
49
|
+
player.logout()
|
|
50
|
+
```
|
|
51
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: py2hackCraft2
|
|
3
|
+
Version: 1.0.13
|
|
4
|
+
Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
|
|
5
|
+
Home-page: https://pypi.org/project/py2hackCraft2/
|
|
6
|
+
Author: Masafumi Terazono
|
|
7
|
+
Author-email: masafumi_t@0x48lab.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: hackCraft2
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
## 概要
|
|
13
|
+
|
|
14
|
+
**py2hackCraft2**はhackCraft2にpythonから接続し命令をするためのライブラリです。
|
|
15
|
+
hackCraft2がどういうものかについて、くわしくはhackCraft2のダウンロードページを参考していただくとして、
|
|
16
|
+
簡単に説明をするとhackCraft2はMinecraft java editionのサーバープラグインです。
|
|
17
|
+
このプラグインを導入すると、Minecraft上でプログラミングができるようになります。
|
|
18
|
+
Minecraftについて何かについてくわしくはインターネットで検索をして調べてください。
|
|
19
|
+
hackCraft2を導入されたMinecraftサーバーに**py2hackCraft2**をつかえばPythonから命令をすることができます。
|
|
20
|
+
|
|
21
|
+
次に、**py2hackCraft2**のインストール方法、それから利用方法を説明します。
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## インストール方法
|
|
25
|
+
|
|
26
|
+
次のコマンドを実行して、プロジェクトをローカルマシンにセットアップします:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
python3 -m pip install py2hackCraft2
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 利用方法
|
|
33
|
+
|
|
34
|
+
以下のコードはシンプルなコードで、ペットをその場でくるくる回らせるように命令するプログラムです。
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from py2hackCraft.modules import Player
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
player = Player("masafumi_t")
|
|
41
|
+
player.login("localhost", 25570)
|
|
42
|
+
|
|
43
|
+
hello = player.getEntity("hello")
|
|
44
|
+
|
|
45
|
+
for i in range(5):
|
|
46
|
+
hello.forward()
|
|
47
|
+
hello.turnRight()
|
|
48
|
+
|
|
49
|
+
player.logout()
|
|
50
|
+
```
|
|
51
|
+
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
this_directory = Path(__file__).parent
|
|
4
|
+
long_description = (this_directory / "py2hackCraft/README.md").read_text()
|
|
2
5
|
|
|
3
6
|
setup(
|
|
4
7
|
name="py2hackCraft2",
|
|
5
|
-
version="1.0.
|
|
8
|
+
version="1.0.13",
|
|
6
9
|
packages=find_packages(),
|
|
7
10
|
install_requires=[
|
|
8
11
|
"websocket-client" # websocketライブラリの追加
|
|
@@ -11,8 +14,9 @@ setup(
|
|
|
11
14
|
# その他のメタデータ
|
|
12
15
|
author="Masafumi Terazono",
|
|
13
16
|
author_email="masafumi_t@0x48lab.com",
|
|
17
|
+
long_description=long_description,
|
|
18
|
+
long_description_content_type='text/markdown',
|
|
14
19
|
description="These are APIs that connect to the hackCraft2 server from Python to manipulate pets.",
|
|
15
|
-
readme = "README.md",
|
|
16
20
|
license="MIT",
|
|
17
21
|
keywords="hackCraft2",
|
|
18
22
|
url="https://pypi.org/project/py2hackCraft2/", # プロジェクトホームページのURL
|
py2hackCraft2-1.0.12/PKG-INFO
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: py2hackCraft2
|
|
3
|
-
Version: 1.0.12
|
|
4
|
-
Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
|
|
5
|
-
Home-page: https://pypi.org/project/py2hackCraft2/
|
|
6
|
-
Author: Masafumi Terazono
|
|
7
|
-
Author-email: masafumi_t@0x48lab.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Keywords: hackCraft2
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: py2hackCraft2
|
|
3
|
-
Version: 1.0.12
|
|
4
|
-
Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
|
|
5
|
-
Home-page: https://pypi.org/project/py2hackCraft2/
|
|
6
|
-
Author: Masafumi Terazono
|
|
7
|
-
Author-email: masafumi_t@0x48lab.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Keywords: hackCraft2
|
|
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
|