Skip to content

Commit 47a17c5

Browse files
committed
0.0.1a2
1 parent 7007d44 commit 47a17c5

File tree

22 files changed

+205
-32
lines changed

22 files changed

+205
-32
lines changed

README.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
11
# eggdriver
2-
#### 08/06/2021 Santiago, Chile (MM/DD/YYYY)
3-
##### Tags: [template](https://github.com/topics/template)
2+
3+
Your proyect trusted driver.
4+
5+
## NQS inside
6+
7+
### NQS: Natural Quantum Script. A special domain programming language that aims to simplify the first contact with quantum computing
8+
9+
Natural Quantum Script is a special domain programming language that aims to simplify the first contact with quantum computing for people who have prior knowledge in quantum circuits, but not in quantum software development.
10+
11+
Scripts written in NQS seek to visually resemble quantum circuits as much as possible. For example:
12+
13+
q0 q1
14+
X
15+
H
16+
.--- X
17+
c1
18+
19+
NQS is initially based on Qiskit, but seeks to go mainstream in the future. This is an OS project whose initial goal was to make it easier to write basic scripts in Qiskit and to bridge the gap for people who don't dare to delve into quantum computing.
20+
21+
## News
22+
23+
### PythonForChange Announce New SDL: Natural Quantum Script
24+
25+
#### 06/23/2021 Santiago, Chile
26+
27+
**Tags: [quantum-programming-language](https://github.com/topics/quantum-programming-language)**
28+
29+
NQS (Natural Quantum Script) is a speciall domain programming language. It is focused on quantum devices scripting.
30+
The launching date will be announced soon.
31+
32+
File extension: .nqa (Natural Quantum Application)
33+
34+
### First Natural Quantum Script pre-releases
35+
36+
#### 06/27/2021 Santiago, Chile
37+
38+
**Tags: [quantum-programming-language](https://github.com/topics/quantum-programming-language)**
39+
40+
More information about pre-releases [here](https://github.com/eanorambuena/NQS)
41+
42+
### PythonForChange Announce eggdriver
43+
44+
#### 08/06/2021 Santiago, Chile
45+
46+
**Tags: [kit](https://github.com/topics/kit)**

build/lib/eggdriver/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
from eggdriver.news import *
44
from eggdriver.nqs import *
55
from eggdriver.resources import *
6-
from eggdriver.app import *
6+
from eggdriver.app import *
7+
from eggdriver.pypi import build

build/lib/eggdriver/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Imports
22
from eggdriver.resources.console import get, clearConsole
33
from eggdriver.resources.constants import *
4-
from eggdriver.resources.modules import install, upgrade, Repo
4+
from eggdriver.resources.modules import installFromRequests, upgrade, Repo
55
from eggdriver.resources.help import help
66
from eggdriver.resources.auth import login, register
77

@@ -33,10 +33,10 @@ def eggConsole(condition: bool = True):
3333
while condition:
3434
i=get("egg")
3535
if i=="$nqs":
36-
from nqs.developer.app import developerConsole
36+
from eggdriver.nqs import developerConsole
3737
developerConsole()
3838
elif i=="$new":
39-
from news.app import journalistConsole
39+
from eggdriver.news import journalistConsole
4040
journalistConsole()
4141
elif i=="$login":
4242
login()
@@ -45,7 +45,7 @@ def eggConsole(condition: bool = True):
4545
elif i=="$install":
4646
print(white+"Package:")
4747
name=get("egg")
48-
install(name)
48+
installFromRequests([name], False)
4949
elif i=="$upgrade":
5050
print(white+"Package:")
5151
name=get("egg")

build/lib/eggdriver/pypi.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from eggdriver.resources import installFromRequests, sysCommand
2+
3+
"""
4+
FUNCTION build()
5+
6+
py -m build --sdist
7+
py -m build --wheel
8+
py -m twine check dist/*
9+
py -m twine upload dist/*
10+
"""
11+
def build():
12+
installFromRequests(["setuptools", "twine", "build"], False)
13+
sysCommand("-m build --sdist")
14+
sysCommand("-m build --wheel")
15+
sysCommand("-m twine check dist/*")
16+
sysCommand("-m twine upload dist/*")

build/lib/eggdriver/resources/console/display.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import time, os
1+
import time, os, sys, subprocess
22
from eggdriver.resources.constants import *
33

44
def sleep(i: int =100):
@@ -14,4 +14,11 @@ def display(T, delta: int = 400, condition: bool = True):
1414
while condition:
1515
print(T)
1616
sleep(delta)
17-
clearConsole()
17+
clearConsole()
18+
19+
def sysCommand(command: str):
20+
commands = command.split()
21+
temp = commands.reverse()
22+
temp.append(sys.executable)
23+
commands = temp.reverse()
24+
subprocess.check_call(commands)

build/lib/eggdriver/resources/modules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ def isntInstalled(package):
1313
return False
1414

1515
def install_option_1(name: str):
16-
#Implement pip as a subprocess
16+
"""Implement pip as a subprocess"""
1717
if name == "$upgrade":
1818
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'pip'])
1919
else:
2020
subprocess.check_call([sys.executable, '-m', 'pip', 'install', name])
2121
return "done"
2222

2323
def install_option_2(name: str):
24-
#Implement pip using pip package
24+
"""Implement pip using pip package"""
2525
pip.main(['install', name])
2626
return "done"
2727

build/lib/eggdriver/resources/structures/images.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from eggdriver.resources.structures import List, Matrix
1+
from eggdriver.resources.structures.lists import List
2+
from eggdriver.resources.structures.matrices import Matrix
23
from eggdriver.resources.modules import installFromRequests
34
from eggdriver.resources.console import sleep
45
from eggdriver.resources.constants import limit, square, whiteSquare, blackSquare

build/lib/eggdriver/resources/structures/lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from eggdriver.resources.structures import Iterator
1+
from eggdriver.resources.structures.iterators import Iterator
22

33
class List():
44
def __init__(self, list = []):

build/lib/eggdriver/resources/structures/matrices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from eggdriver.resources.structures import List
1+
from eggdriver.resources.structures.lists import List
22

33
class Matrix(List):
44
def __init__(self, listOfLists = []):
24.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)