-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added external configuration file support ( #35 ) - Implemented argparse (BREAKING CHANGE)!
- Loading branch information
1 parent
a327363
commit 14b07d1
Showing
8 changed files
with
80 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ workspace.code-workspace | |
metadata/*.json | ||
images/*.png | ||
.ipynb_checkpoints/ | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"layers": [ | ||
{ | ||
"name": "Background", | ||
"values": ["Blue", "Orange", "Purple", "Red", "Yellow"], | ||
"trait_path": "./trait-layers/backgrounds", | ||
"filename": ["blue", "orange", "purple", "red", "yellow"], | ||
"weights": [20,20,20,20,20] | ||
}, | ||
{ | ||
"name": "Foreground", | ||
"values": ["Python Logo", "Python Logo 32"], | ||
"trait_path": "./trait-layers/foreground", | ||
"filename": ["logo", "logo"], | ||
"weights": [50, 50] | ||
}, | ||
{ | ||
"name": "Branding", | ||
"values": ["A Name", "Another Name"], | ||
"trait_path": "./trait-layers/text", | ||
"filename": ["text", "text"], | ||
"weights": [50, 50] | ||
} | ||
], | ||
"incompatibilities": [ | ||
{ | ||
"layer": "Background", | ||
"value": "Blue", | ||
"incompatible_with": ["Python Logo 2"] | ||
} | ||
], | ||
"baseURI": ".", | ||
"name": "NFT #", | ||
"description": "This is a description for this NFT series." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import os | ||
import json | ||
|
||
def pathExists(dirPath): | ||
return os.path.exists(dirPath) | ||
|
||
def loadJSON(path): | ||
with open(path) as pathFile: | ||
contents = json.loads("".join(pathFile.readlines())) | ||
return contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ ptyprocess==0.7.0 | |
Pygments==2.11.0 | ||
traitlets==5.1.1 | ||
wcwidth==0.2.5 | ||
argparse==1.4.0 |