summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 10:06:14 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 10:06:14 +0000
commit4b5b2e9293b2c6e28352069b7b7ac7e5b0abb1c7 (patch)
treeccf264e86b987575b3a17c06df38e4aa3e0311b5
parent685d97abbc63c7ef555553796591df103f367f51 (diff)
automatic import of python-pysondb
-rw-r--r--.gitignore1
-rw-r--r--python-pysondb.spec524
-rw-r--r--sources1
3 files changed, 526 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..598861a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pysondb-1.6.7.tar.gz
diff --git a/python-pysondb.spec b/python-pysondb.spec
new file mode 100644
index 0000000..6c17eba
--- /dev/null
+++ b/python-pysondb.spec
@@ -0,0 +1,524 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pysondb
+Version: 1.6.7
+Release: 1
+Summary: A Python JSON based lightweight Database.
+License: MIT License
+URL: https://github.com/pysonDB/pysonDB
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c6/d7/365937d1c4cce17a73417aa92b169552232c98ad48a85725fdd718863577/pysondb-1.6.7.tar.gz
+BuildArch: noarch
+
+Requires: python3-beautifultable
+Requires: python3-filelock
+
+%description
+![data](https://raw.githubusercontent.com/pysonDB/pysonDB/master/images/file2son.png?token=APXKHAH6EDEJ7RUG3QOD2OC7ZHQZG)
+
+
+
+
+
+
+## A Simple, Lightweight, Efficent JSON based DataBase for Python
+
+ [![PyPI version](https://badge.fury.io/py/pysondb.svg)](https://pypi.org/project/pysondb/)
+[![Downloads](https://pepy.tech/badge/pysondb/month)](https://pepy.tech/project/pysondb)
+ [![CodeFactor](https://www.codefactor.io/repository/github/pysondb/pysondb/badge)](https://www.codefactor.io/repository/github/pysondb/pysondb)
+ [![Discord](https://img.shields.io/discord/781486602778050590)](https://discord.gg/SZyk2dCgwg)
+ ![GitHub Repo stars](https://img.shields.io/github/stars/pysonDB/pysonDB?style=plastic)
+[![Downloads](https://static.pepy.tech/personalized-badge/pysondb?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/pysondb)
+
+ ***
+
+
+The current stable version is v1.6.1
+```python
+pip install pysondb==1.6.1
+```
+
+## Support the project here
+
+<a href="https://www.buymeacoffee.com/fredysomy"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee.&emoji=&slug=fredysomy&button_colour=FFDD00&font_colour=000000&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff"></a>
+## Hacktoberfest
+
+While we are accepting pull requests for Hacktoberfest, we will reject any low-quality PR's.
+
+We are accepting PRs for:
+
+* Packages - updating package versions, adding new packages
+Documentation updates
+* More features and fixes (Refer here)
+* CLI/API improvements - Redoing the CLI to reduce the usage of CLI packages.
+* We are planning to reduce the project dependencies and remove other unwanted API's.
+### Checkout the active issues [here](https://github.com/pysonDB/pysonDB/issues)
+
+## Features
+
+* __Lightweight__ JSON based database.
+* Supports __CRUD__ commands.
+* No Database drivers required.
+* __Unique ID__ assigned for each JSON document added.
+* Strict about __Schema__ of data added.
+* __Inbuilt CLI__ to delete,display,create JSON database.
+
+```python
+>> from pysondb import db
+>> a=db.getDb("path/to/json.json")
+>> a.addMany([{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}])
+>> a.getAll()
+>> [{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}]
+```
+* See its simple..
+
+## Quick Links
+
+
+* [Install](https://github.com/pysonDB/pysonDB#install)
+* [Example Code](https://github.com/pysonDB/pysonDB/tree/master/example)
+* [Command Line Operations](https://pysondb.github.io/pysonDB/cli)
+* [Adding Data](https://pysondb.github.io/pysonDB/add)
+* [Get data](https://pysondb.github.io/pysonDB/get)
+* [Search data](https://pysondb.github.io/pysonDB/re_search)
+* [Update Data](https://pysondb.github.io/pysonDB/update)
+* [Delete Data](https://pysondb.github.io/pysonDB/delete)
+
+## Install
+
+```python
+pip install pysondb
+```
+## Create a database
+
+* You can create a database using CLI.
+```bash
+pysondb create database_name.json
+```
+* Or in the python file.
+
+```python
+from pysondb import db
+
+a=db.getDb("db.json")
+```
+
+* The above piece of code will create a database with ``` {data:[]}``` in it.
+* Even if the json file exists there is no problem.
+
+See more Documentation [here](https://pysondb.github.io/pysonDB/)
+
+## What makes pysonDB different
+
+* CLI support to create,delete and display database.
+* Unique Id automatically assigned for each JSON data added.
+* Schema regularity is checked.
+
+## What pysonDB can't do.
+
+* Cannot store images,videos etc.
+
+## TODO
+
+- [X] CLI to convert CSV to pysonDB required json.
+- [X] Use CSV file in the database.
+- [X] Make the database available to use local servers (Flask,Django)
+
+## Contributors.
+
+<a href="https://github.com/pysonDB/pysonDB/graphs/contributors">
+ <img src="https://contrib.rocks/image?repo=pysonDB/pysonDB" />
+</a>
+
+
+## Projects using PysonDB
+
+* [my-first-streamlit-app](https://github.com/mro-lht/my-first-streamlit-app)
+* [PythonChallenge](https://github.com/Odenrir/PythonChallenge)
+* [Task-Me-Up](https://github.com/Adwaith-Rajesh/Task-Me-Up)
+* [bagel](https://github.com/HaithemSouala/bagel)
+* [prox_community](https://github.com/Kavzor/prox_community)
+* [USVBachelorProject](https://github.com/mhj5103/USVBachelorProject)
+* [gardenwatering](https://github.com/erivansousa/gardenwatering)
+* [cf_scraper](https://github.com/bobross419/cf_scraper)
+<!---
+* [Programozasi_kornyezetek](https://github.com/Remgax/Programozasi_kornyezetek)
+-->
+
+
+
+
+
+
+
+
+## Contributing
+
+Whether reporting bugs, discussing improvements and new ideas or writing extensions: Contributions to pysonDB are welcome! Here's how to get started:
+
+* Join Discord channel [Here](https://discord.gg/SZyk2dCgwg)
+* Check for issues or open a issue or open a feature requests.
+* Fork the repository on Github
+* Create a new branch off the master branch.
+* Write a test which shows that the bug was fixed or that the feature works as expected.
+* Send a pull request to us and wait till it get merged.
+
+
+
+
+%package -n python3-pysondb
+Summary: A Python JSON based lightweight Database.
+Provides: python-pysondb
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pysondb
+![data](https://raw.githubusercontent.com/pysonDB/pysonDB/master/images/file2son.png?token=APXKHAH6EDEJ7RUG3QOD2OC7ZHQZG)
+
+
+
+
+
+
+## A Simple, Lightweight, Efficent JSON based DataBase for Python
+
+ [![PyPI version](https://badge.fury.io/py/pysondb.svg)](https://pypi.org/project/pysondb/)
+[![Downloads](https://pepy.tech/badge/pysondb/month)](https://pepy.tech/project/pysondb)
+ [![CodeFactor](https://www.codefactor.io/repository/github/pysondb/pysondb/badge)](https://www.codefactor.io/repository/github/pysondb/pysondb)
+ [![Discord](https://img.shields.io/discord/781486602778050590)](https://discord.gg/SZyk2dCgwg)
+ ![GitHub Repo stars](https://img.shields.io/github/stars/pysonDB/pysonDB?style=plastic)
+[![Downloads](https://static.pepy.tech/personalized-badge/pysondb?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/pysondb)
+
+ ***
+
+
+The current stable version is v1.6.1
+```python
+pip install pysondb==1.6.1
+```
+
+## Support the project here
+
+<a href="https://www.buymeacoffee.com/fredysomy"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee.&emoji=&slug=fredysomy&button_colour=FFDD00&font_colour=000000&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff"></a>
+## Hacktoberfest
+
+While we are accepting pull requests for Hacktoberfest, we will reject any low-quality PR's.
+
+We are accepting PRs for:
+
+* Packages - updating package versions, adding new packages
+Documentation updates
+* More features and fixes (Refer here)
+* CLI/API improvements - Redoing the CLI to reduce the usage of CLI packages.
+* We are planning to reduce the project dependencies and remove other unwanted API's.
+### Checkout the active issues [here](https://github.com/pysonDB/pysonDB/issues)
+
+## Features
+
+* __Lightweight__ JSON based database.
+* Supports __CRUD__ commands.
+* No Database drivers required.
+* __Unique ID__ assigned for each JSON document added.
+* Strict about __Schema__ of data added.
+* __Inbuilt CLI__ to delete,display,create JSON database.
+
+```python
+>> from pysondb import db
+>> a=db.getDb("path/to/json.json")
+>> a.addMany([{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}])
+>> a.getAll()
+>> [{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}]
+```
+* See its simple..
+
+## Quick Links
+
+
+* [Install](https://github.com/pysonDB/pysonDB#install)
+* [Example Code](https://github.com/pysonDB/pysonDB/tree/master/example)
+* [Command Line Operations](https://pysondb.github.io/pysonDB/cli)
+* [Adding Data](https://pysondb.github.io/pysonDB/add)
+* [Get data](https://pysondb.github.io/pysonDB/get)
+* [Search data](https://pysondb.github.io/pysonDB/re_search)
+* [Update Data](https://pysondb.github.io/pysonDB/update)
+* [Delete Data](https://pysondb.github.io/pysonDB/delete)
+
+## Install
+
+```python
+pip install pysondb
+```
+## Create a database
+
+* You can create a database using CLI.
+```bash
+pysondb create database_name.json
+```
+* Or in the python file.
+
+```python
+from pysondb import db
+
+a=db.getDb("db.json")
+```
+
+* The above piece of code will create a database with ``` {data:[]}``` in it.
+* Even if the json file exists there is no problem.
+
+See more Documentation [here](https://pysondb.github.io/pysonDB/)
+
+## What makes pysonDB different
+
+* CLI support to create,delete and display database.
+* Unique Id automatically assigned for each JSON data added.
+* Schema regularity is checked.
+
+## What pysonDB can't do.
+
+* Cannot store images,videos etc.
+
+## TODO
+
+- [X] CLI to convert CSV to pysonDB required json.
+- [X] Use CSV file in the database.
+- [X] Make the database available to use local servers (Flask,Django)
+
+## Contributors.
+
+<a href="https://github.com/pysonDB/pysonDB/graphs/contributors">
+ <img src="https://contrib.rocks/image?repo=pysonDB/pysonDB" />
+</a>
+
+
+## Projects using PysonDB
+
+* [my-first-streamlit-app](https://github.com/mro-lht/my-first-streamlit-app)
+* [PythonChallenge](https://github.com/Odenrir/PythonChallenge)
+* [Task-Me-Up](https://github.com/Adwaith-Rajesh/Task-Me-Up)
+* [bagel](https://github.com/HaithemSouala/bagel)
+* [prox_community](https://github.com/Kavzor/prox_community)
+* [USVBachelorProject](https://github.com/mhj5103/USVBachelorProject)
+* [gardenwatering](https://github.com/erivansousa/gardenwatering)
+* [cf_scraper](https://github.com/bobross419/cf_scraper)
+<!---
+* [Programozasi_kornyezetek](https://github.com/Remgax/Programozasi_kornyezetek)
+-->
+
+
+
+
+
+
+
+
+## Contributing
+
+Whether reporting bugs, discussing improvements and new ideas or writing extensions: Contributions to pysonDB are welcome! Here's how to get started:
+
+* Join Discord channel [Here](https://discord.gg/SZyk2dCgwg)
+* Check for issues or open a issue or open a feature requests.
+* Fork the repository on Github
+* Create a new branch off the master branch.
+* Write a test which shows that the bug was fixed or that the feature works as expected.
+* Send a pull request to us and wait till it get merged.
+
+
+
+
+%package help
+Summary: Development documents and examples for pysondb
+Provides: python3-pysondb-doc
+%description help
+![data](https://raw.githubusercontent.com/pysonDB/pysonDB/master/images/file2son.png?token=APXKHAH6EDEJ7RUG3QOD2OC7ZHQZG)
+
+
+
+
+
+
+## A Simple, Lightweight, Efficent JSON based DataBase for Python
+
+ [![PyPI version](https://badge.fury.io/py/pysondb.svg)](https://pypi.org/project/pysondb/)
+[![Downloads](https://pepy.tech/badge/pysondb/month)](https://pepy.tech/project/pysondb)
+ [![CodeFactor](https://www.codefactor.io/repository/github/pysondb/pysondb/badge)](https://www.codefactor.io/repository/github/pysondb/pysondb)
+ [![Discord](https://img.shields.io/discord/781486602778050590)](https://discord.gg/SZyk2dCgwg)
+ ![GitHub Repo stars](https://img.shields.io/github/stars/pysonDB/pysonDB?style=plastic)
+[![Downloads](https://static.pepy.tech/personalized-badge/pysondb?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/pysondb)
+
+ ***
+
+
+The current stable version is v1.6.1
+```python
+pip install pysondb==1.6.1
+```
+
+## Support the project here
+
+<a href="https://www.buymeacoffee.com/fredysomy"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee.&emoji=&slug=fredysomy&button_colour=FFDD00&font_colour=000000&font_family=Poppins&outline_colour=000000&coffee_colour=ffffff"></a>
+## Hacktoberfest
+
+While we are accepting pull requests for Hacktoberfest, we will reject any low-quality PR's.
+
+We are accepting PRs for:
+
+* Packages - updating package versions, adding new packages
+Documentation updates
+* More features and fixes (Refer here)
+* CLI/API improvements - Redoing the CLI to reduce the usage of CLI packages.
+* We are planning to reduce the project dependencies and remove other unwanted API's.
+### Checkout the active issues [here](https://github.com/pysonDB/pysonDB/issues)
+
+## Features
+
+* __Lightweight__ JSON based database.
+* Supports __CRUD__ commands.
+* No Database drivers required.
+* __Unique ID__ assigned for each JSON document added.
+* Strict about __Schema__ of data added.
+* __Inbuilt CLI__ to delete,display,create JSON database.
+
+```python
+>> from pysondb import db
+>> a=db.getDb("path/to/json.json")
+>> a.addMany([{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}])
+>> a.getAll()
+>> [{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}]
+```
+* See its simple..
+
+## Quick Links
+
+
+* [Install](https://github.com/pysonDB/pysonDB#install)
+* [Example Code](https://github.com/pysonDB/pysonDB/tree/master/example)
+* [Command Line Operations](https://pysondb.github.io/pysonDB/cli)
+* [Adding Data](https://pysondb.github.io/pysonDB/add)
+* [Get data](https://pysondb.github.io/pysonDB/get)
+* [Search data](https://pysondb.github.io/pysonDB/re_search)
+* [Update Data](https://pysondb.github.io/pysonDB/update)
+* [Delete Data](https://pysondb.github.io/pysonDB/delete)
+
+## Install
+
+```python
+pip install pysondb
+```
+## Create a database
+
+* You can create a database using CLI.
+```bash
+pysondb create database_name.json
+```
+* Or in the python file.
+
+```python
+from pysondb import db
+
+a=db.getDb("db.json")
+```
+
+* The above piece of code will create a database with ``` {data:[]}``` in it.
+* Even if the json file exists there is no problem.
+
+See more Documentation [here](https://pysondb.github.io/pysonDB/)
+
+## What makes pysonDB different
+
+* CLI support to create,delete and display database.
+* Unique Id automatically assigned for each JSON data added.
+* Schema regularity is checked.
+
+## What pysonDB can't do.
+
+* Cannot store images,videos etc.
+
+## TODO
+
+- [X] CLI to convert CSV to pysonDB required json.
+- [X] Use CSV file in the database.
+- [X] Make the database available to use local servers (Flask,Django)
+
+## Contributors.
+
+<a href="https://github.com/pysonDB/pysonDB/graphs/contributors">
+ <img src="https://contrib.rocks/image?repo=pysonDB/pysonDB" />
+</a>
+
+
+## Projects using PysonDB
+
+* [my-first-streamlit-app](https://github.com/mro-lht/my-first-streamlit-app)
+* [PythonChallenge](https://github.com/Odenrir/PythonChallenge)
+* [Task-Me-Up](https://github.com/Adwaith-Rajesh/Task-Me-Up)
+* [bagel](https://github.com/HaithemSouala/bagel)
+* [prox_community](https://github.com/Kavzor/prox_community)
+* [USVBachelorProject](https://github.com/mhj5103/USVBachelorProject)
+* [gardenwatering](https://github.com/erivansousa/gardenwatering)
+* [cf_scraper](https://github.com/bobross419/cf_scraper)
+<!---
+* [Programozasi_kornyezetek](https://github.com/Remgax/Programozasi_kornyezetek)
+-->
+
+
+
+
+
+
+
+
+## Contributing
+
+Whether reporting bugs, discussing improvements and new ideas or writing extensions: Contributions to pysonDB are welcome! Here's how to get started:
+
+* Join Discord channel [Here](https://discord.gg/SZyk2dCgwg)
+* Check for issues or open a issue or open a feature requests.
+* Fork the repository on Github
+* Create a new branch off the master branch.
+* Write a test which shows that the bug was fixed or that the feature works as expected.
+* Send a pull request to us and wait till it get merged.
+
+
+
+
+%prep
+%autosetup -n pysondb-1.6.7
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pysondb -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..77f1e0a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6a31bcf7a0491f64e32c2c7c32abfdde pysondb-1.6.7.tar.gz