Skip to content

Commit 28a2ea7

Browse files
author
Alex Gaetano Padula
committed
rename package to cursusdb instead of cursusdb-py
1 parent 74b7c1e commit 28a2ea7

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
22
build
3-
*.egg-info
3+
*.egg-info
4+
.idea
File renamed without changes.

cursusdb-py/main.py renamed to cursusdb/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import base64
2121
import socket
2222

23+
2324
# CursusDB Cluster Client Class
2425
class Client:
2526
def __init__(self, host, port, username, password, tls):
@@ -36,7 +37,7 @@ def connect(self):
3637
context = ssl.create_default_context()
3738
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
3839
self.sock = context.wrap_socket(socket.socket(socket.AF_INET), server_hostname=self.host)
39-
40+
4041
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
4142
self.sock.connect((self.host, self.port))
4243
auth_str = f"{self.username}\\0{self.password}".encode("utf8")

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Will soon be available on PyPI.
33

44
Importing package
55
```
6-
from cursusdb-py import Client
6+
from cursusdb import Client
77
```
88

99
Using
@@ -12,6 +12,6 @@ Using
1212
c = Client("0.0.0.0", 7681, "username", "password", False)
1313
print(c.connect())
1414
15-
print(c.query("select count from tweets;"))
15+
print(c.query("ping;"))
1616
c.close()
17-
```
17+
```

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from setuptools import setup, find_packages
22

33
setup(
4-
name='cursusdb-py',
5-
version='1.0',
4+
name='cursusdb',
5+
version='1.1.0',
6+
description='Official CursusDB Native Client for Python',
67
packages=find_packages(),
78
install_requires=[]
8-
)
9+
)

0 commit comments

Comments
 (0)