Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
Quick and easy SQLite ORM for local python applications.
It is indeed a reversed ORM:
Some minimum SQL knowledge is required, the purpose of Silly DB is not to get rid of SQL (actualy, SQL is the best language to manage... a SQL database), but to handle the annoying things, and let you focus on your application with a minimum amount of code.
$ pip install silly-db
Create a new directory and open a console in there.
Get a basic working structure with 'plop':
$ silly-db plop db
Congratulations ! You've got your database ready to work ! To understand how it works, open the differents files provided and read the comments, it will be easy to adapt to your own needs.
get more info with:
$ silly-db -h
and more about the plop options here:
$ silly-db plop
Cat = db.model('cat') # model created from the existing database
Cat.sil.insert(name="Kutty", owner_id=1)
cats = Cat.sil.filter("name like 'K%'")
print(cats.jsonify())
>>>[{'id': 58, 'name': 'Kutty', 'owner_id': 1}]
Cat.sil.update("id=58", name="Duke")
cat = Cat.sil.get("id=58")
print(cat.name)
>>> 'Duke'
print(cat.jsonify())
>>>{'id': 58, 'name': 'Duke', 'owner_id': 1}
Cat.sil.delete("id=58")
Take a look at the wiki here
FAQs
Very light ORM for SQLite, simple and efficient
We found that silly-db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.