Skip to content

Commit

Permalink
It's published!
Browse files Browse the repository at this point in the history
  • Loading branch information
PoshoDev committed Oct 19, 2021
1 parent 36dd9a7 commit f294363
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
**/_Ignore
**/__pycache__
**/build
**/dist
**/Loaf.egg-info
_creds.py
test.py
File renamed without changes.
2 changes: 2 additions & 0 deletions Loaf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import loaf
# hi mom!
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,16 @@ Effortlessly access your MySQL server and procedures, plus some other utilities.

## Install

This isn't a Python package yet so you'd need to do this very archaically for now, lmao.

You need to install the following:

```
$ pip install pymysql
$ pip install datetime
```

Then simply download *LazyDB.py* and put it in your project's directory, then use the good ol' *import*:

```python
import Loaf
$ pip install Loaf
```



## Sample Demo

```python
import Loaf
import Loaf # Don't forget the uppercase 'L'!

# Setup your credentials with a single line.
Loaf.bake(port=6969, db="pizzeria")
Expand All @@ -45,3 +34,7 @@ result = Loaf.call("ProcedureFindClient", 1)
print(result)
```



![]()

Binary file added loaf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from setuptools import setup, find_packages

VERSION = '0.1.3'
DESCRIPTION = 'Effortlessly access your MySQL server and procedures, plus some other utilities!'
LONG_DESCRIPTION = 'Effortlessly access your MySQL server and procedures, plus some other utilities!'

# Setting up
setup(
name="Loaf",
version=VERSION,
author="Posho (Rodrigo Gómez Maitret)",
author_email="<[email protected]>",
description=DESCRIPTION,
long_description_content_type="text/markdown",
long_description=LONG_DESCRIPTION,
packages=find_packages(),
install_requires=["pymysql", "datetime"], # Excludes "socket"
keywords=['python', 'MySQL', 'database', 'db', 'easy', 'loaf', 'bread'],
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
)

0 comments on commit f294363

Please sign in to comment.