-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all needed files to release 0.1.0
- Loading branch information
Showing
6 changed files
with
83 additions
and
18 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 |
---|---|---|
@@ -1,21 +1,31 @@ | ||
# eth-logo | ||
|
||
[//]: # ([](https://badge.fury.io/py/eth-logo)) | ||
[//]: # ([](https://pypi.python.org/pypi/eth-logo)) | ||
Print Ethereum logo of any size on your stout. | ||
|
||
Print Ethereum logo of your selected size on your stout. | ||
## Quickstart | ||
```sh | ||
python3 -m pip install eth-logo | ||
``` | ||
|
||
### Usage (in terminal) | ||
```python | ||
# Optionals: print-eth SIZE CHAR [defaults: size=20 char='#'] | ||
print-eth | ||
print-eth 30 % | ||
``` | ||
|
||
## Quickstart | ||
### Usage (in python) | ||
```python | ||
from eth_logo import print_eth | ||
|
||
```sh | ||
python -m pip install eth-logo | ||
# Optionals: Size, Character, Background, Padding | ||
print_eth(size=20, char='#', back=' ', pad=' ') | ||
``` | ||
|
||
### Development Environment Setup | ||
|
||
### Contribute | ||
You can set up your dev environment with: | ||
|
||
```sh | ||
git clone [email protected]:0xMarto/eth-logo.git | ||
cd eth-logo | ||
|
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,2 @@ | ||
from eth_logo.eth_logo_core import print_eth | ||
from eth_logo.eth_logo_script import print_eth_script |
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
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,41 @@ | ||
#!/usr/bin/python | ||
""" | ||
Usage: | ||
print-eth SIZE CHAR [defaults: size=20 char='#'] | ||
Examples: | ||
print-eth | ||
print-eth 30 % | ||
Code: | ||
https://github.com/0xMarto/eth-logo | ||
""" | ||
import sys | ||
from eth_logo import print_eth | ||
|
||
|
||
def main(): | ||
parameter_amount = len(sys.argv) - 1 | ||
if parameter_amount == 1 and (sys.argv[1] == '-h' or sys.argv[1] == '--help'): | ||
print(__doc__) | ||
sys.exit(1) | ||
try: | ||
if parameter_amount == 1: | ||
size = int(sys.argv[1]) | ||
print_eth(size) | ||
elif parameter_amount == 2: | ||
size, char = int(sys.argv[1]), str(sys.argv[2]) | ||
print_eth(size, char) | ||
else: | ||
print_eth() | ||
except Exception as e: | ||
print(e) | ||
sys.exit(1) | ||
|
||
|
||
def print_eth_script(): | ||
main() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |