Skip to content

Commit a4c9e8c

Browse files
author
Joseph Procopio and Rene Sanchez
committed
restructures for pip
1 parent 93f25d3 commit a4c9e8c

File tree

13 files changed

+30
-7
lines changed

13 files changed

+30
-7
lines changed

.DS_Store

6 KB
Binary file not shown.

E2Yaml/.DS_Store

6 KB
Binary file not shown.

eyconverter.py renamed to E2Yaml/E2Yaml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import re
22
from collections import Mapping
33

4-
from utilities import ignored_term_in_line, process_key, convert_key_value_pairs_to_dictionary, read_from_clipboard, \
5-
write_to_clipboard
4+
from E2Yaml.utilities import read_from_clipboard, write_to_clipboard, ignored_term_in_line, \
5+
convert_key_value_pairs_to_dictionary, process_key
66

77

88
class EyConverter:
@@ -19,7 +19,7 @@ def __init__(self, log=False):
1919

2020
def add_line(self, line):
2121

22-
self.lines.append(lines)
22+
self.lines.append(line)
2323
return self
2424

2525
def from_clipboard(self):

E2Yaml/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from E2Yaml.E2Yaml import *
3.64 KB
Binary file not shown.
1.86 KB
Binary file not shown.
File renamed without changes.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PARSING: SPRING_DATA_MONGODB_REPLICASET: FAKE-DB-531 OK
3434

3535
## Importing
3636
```
37-
import eyconverter as ey
37+
import E2Yaml as ey
3838
```
3939

4040
## Loading
@@ -48,7 +48,7 @@ yml = ey.load_file('test_input.env', log=True)
4848
Note: you can disable logging by not including the second parameter *log=True*
4949
5050
# adding one line at a time
51-
yml = :ey.add_line("SOME_TEXT=true")
51+
yml = ey.add_line("SOME_TEXT=true")
5252
```
5353

5454
## Preserving Words

driver.py renamed to examples/driver.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/env python3
22

33
# first import the tool
4-
import eyconverter as ey
54

65
# example program loading from clipboard and outputting to clipboard
7-
yml = ey.from_clipboard(log=True)
6+
from E2Yaml import E2Yaml
7+
8+
yml = E2Yaml.from_clipboard(log=True)
89

910
# uncomment this if you would like to convert a file
1011
# yml = ey.load_file('test_input.env', log=True)
File renamed without changes.

0 commit comments

Comments
 (0)