threesaveslot 0.1.0__py3-none-any.whl → 1.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.
- threesaveslot/__init__.py +1 -1
- threesaveslot/threesaveslot.py +10 -4
- threesaveslot-1.1.0.dist-info/METADATA +62 -0
- threesaveslot-1.1.0.dist-info/RECORD +6 -0
- threesaveslot-0.1.0.dist-info/METADATA +0 -67
- threesaveslot-0.1.0.dist-info/RECORD +0 -6
- {threesaveslot-0.1.0.dist-info → threesaveslot-1.1.0.dist-info}/WHEEL +0 -0
- {threesaveslot-0.1.0.dist-info → threesaveslot-1.1.0.dist-info}/top_level.txt +0 -0
threesaveslot/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
from .
|
|
1
|
+
from .threesaveslot import *
|
threesaveslot/threesaveslot.py
CHANGED
|
@@ -10,7 +10,8 @@ savelist = []
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def createsavefile(name = "savefile"):
|
|
13
|
-
open(name, "
|
|
13
|
+
with open(name + ".json", "w") as f:
|
|
14
|
+
json.dump([], f)
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
def basicsave(listtosave = savelist, filename = "savefile"):
|
|
@@ -19,8 +20,13 @@ def basicsave(listtosave = savelist, filename = "savefile"):
|
|
|
19
20
|
json.dump(listtosave, f)
|
|
20
21
|
|
|
21
22
|
|
|
22
|
-
def basicload(filename = "savefile"):
|
|
23
|
+
def basicload(listtoload = "savelist", filename = "savefile"):
|
|
23
24
|
filename = str(filename)
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
global savelist
|
|
26
|
+
if listtoload == "savelist":
|
|
27
|
+
with open(filename + ".json") as f:
|
|
28
|
+
savelist = json.load(f)
|
|
29
|
+
else:
|
|
30
|
+
with open(filename + ".json") as f:
|
|
31
|
+
return json.load(f)
|
|
26
32
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: threesaveslot
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Summary: description here. each time you want to update your module, make sure the version above doesnt already exist!
|
|
5
|
+
Home-page: https://github.com/Knights-of-Dev/threesaveslot
|
|
6
|
+
Author: Pitchfork
|
|
7
|
+
Author-email: example@example.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: Freeware
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: summary
|
|
28
|
+
|
|
29
|
+
# Threesaveslot
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Documentation
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### To make a save file
|
|
36
|
+
```Python
|
|
37
|
+
createsavefile(name)
|
|
38
|
+
```
|
|
39
|
+
name: the string that the file will be named, if left blank it will be named savefile
|
|
40
|
+
|
|
41
|
+
This function makes a file to save stuff in.
|
|
42
|
+
|
|
43
|
+
### To save
|
|
44
|
+
```Python
|
|
45
|
+
basicsave(listtosave, filename)
|
|
46
|
+
```
|
|
47
|
+
filename: the string that the program will look for when finding a file, do not include .json, leave it blank for looking for a file named savefile
|
|
48
|
+
|
|
49
|
+
listtosave: set this equal to the list you want to save, leave blank for the basic save list.
|
|
50
|
+
|
|
51
|
+
This function saves a list of varibles to a save file.
|
|
52
|
+
|
|
53
|
+
### To load
|
|
54
|
+
```Python
|
|
55
|
+
basicload(listtoload, filename)
|
|
56
|
+
```
|
|
57
|
+
filename: the string that the program will look for when finding a file, do not include .json, leave it blank for looking for a file named savefile
|
|
58
|
+
|
|
59
|
+
listtoload: set this equal to the list you want to load, leave blank for the basic save list.
|
|
60
|
+
|
|
61
|
+
This function loads the varibles from the save file. If your using the built in save list then leave listtoload blank, the code will set the savelist to the loaded list. If your using a custom list then set listtoload to the list. **Instead of setting the list it will return it!**
|
|
62
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
threesaveslot/__init__.py,sha256=TdQB3LhfRK3jZVAC1tGwl425KfYiiM-pN-UdD0TSO-Y,29
|
|
2
|
+
threesaveslot/threesaveslot.py,sha256=hwaAWD1Y7U7Ks6nhrRYLsXqElx2rqq_2WLqKwMA6eHI,691
|
|
3
|
+
threesaveslot-1.1.0.dist-info/METADATA,sha256=RQh-5OJ6I6LyE3FBoDVxBrZ7tDEJF2XXPmA15jHIqYg,2152
|
|
4
|
+
threesaveslot-1.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
5
|
+
threesaveslot-1.1.0.dist-info/top_level.txt,sha256=gIOVHrcLR4pAcG4I8bNtCww1Fz_7z86J_O4W_1x5ZbI,14
|
|
6
|
+
threesaveslot-1.1.0.dist-info/RECORD,,
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: threesaveslot
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: description here. each time you want to update your module, make sure the version above doesnt already exist!
|
|
5
|
-
Home-page: https://github.com/Knights-of-Dev/threesaveslot
|
|
6
|
-
Author: Pitchfork
|
|
7
|
-
Author-email: example@example.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Classifier: Development Status :: 4 - Beta
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: License :: Freeware
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.15
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
Dynamic: author
|
|
21
|
-
Dynamic: author-email
|
|
22
|
-
Dynamic: classifier
|
|
23
|
-
Dynamic: description
|
|
24
|
-
Dynamic: description-content-type
|
|
25
|
-
Dynamic: home-page
|
|
26
|
-
Dynamic: license
|
|
27
|
-
Dynamic: summary
|
|
28
|
-
|
|
29
|
-
# Minimal Python Module Template
|
|
30
|
-
Add your documentation here!
|
|
31
|
-
|
|
32
|
-
**Quick note: DO NOT CHANGE THE GITHUB WORKFLOWS FOLDER AT ALL, OR .GITIGNORE!!**
|
|
33
|
-
|
|
34
|
-
#### Pitchfork7 here!
|
|
35
|
-
##### adding a tutorial to how to use this :3
|
|
36
|
-
|
|
37
|
-
1. make copy this repo using the template button!
|
|
38
|
-
2. Add your code and rename the folder your project is in!
|
|
39
|
-
3. change PKG and Setup.py to include your information and project name!
|
|
40
|
-
4. Go to pypi and make an account if you dont already have one!
|
|
41
|
-
5. under publishers make a new pending publisher and fill that out!
|
|
42
|
-
6. finally make a new release of this repo!
|
|
43
|
-
|
|
44
|
-
Your now good to Go! :p
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Formatting refs:
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
That was a line
|
|
54
|
-
|
|
55
|
-
# H1
|
|
56
|
-
## H2
|
|
57
|
-
### H3
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
This is code.
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
```Python
|
|
64
|
-
print("This is Python code!")
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
And yeah that's about it.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
threesaveslot/__init__.py,sha256=f2g29hNioBV1NbV3NrYJEGWjW8OfWG1paBNI5p74g1I,26
|
|
2
|
-
threesaveslot/threesaveslot.py,sha256=wrIroNe_j-_qhGa5KUxR_EQ6PwBp5Gi4yUQyf9fNidE,488
|
|
3
|
-
threesaveslot-0.1.0.dist-info/METADATA,sha256=9AC2C02I0-EHGRyxT33A45UzVWl5yMw6nU3IT7xDvbw,1734
|
|
4
|
-
threesaveslot-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
5
|
-
threesaveslot-0.1.0.dist-info/top_level.txt,sha256=gIOVHrcLR4pAcG4I8bNtCww1Fz_7z86J_O4W_1x5ZbI,14
|
|
6
|
-
threesaveslot-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|