
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
An extraordinary python database orm
import alphaorm.AlphaORM as DB
DB.setup('mysql',{
'host' : 'localhost',
'user' : 'root',
'password' : '',
'database' : 'alphaorm'
})
#--------------------------------------
# CREATE 1
#--------------------------------------
product = DB.create('product')
product.name = 'Running shoes'
product.price = 5000
DB.store(product)
#--------------------------------------
# CREATE 2
#--------------------------------------
author = DB.create('author')
author.name = 'Chimamanda Adichie'
book = DB.create('book')
book.title = 'Purple Hibiscus'
book.author = author
DB.store(book)
#--------------------------------------
# READ 1 [get all records]
#--------------------------------------
books = DB.getAll('book')
for book in books:
print(f'{book.title} by {book.author.name}')
#--------------------------------------
# READ 2 [filter one]
#--------------------------------------
book = DB.find('book','id = :bid', { 'bid' : 1 })
print(f'{book.title} by {book.author.name}')
#--------------------------------------
# READ 3 [filter all]
#--------------------------------------
author = DB.find('author','name = :authorName',{ 'authorName': 'William Shakespare' })
booksByShakespare = DB.findAll('book', 'author_id = :authorId', { 'authorId': author.getID() })
print('Books by William Shakespare are :')
for book in booksByShakespare:
print(book.title)
#--------------------------------------
# UPDATE
#--------------------------------------
product = DB.find('product', 'id = :pid', { 'pid': 1 })
product.price = 500
book = DB.find('book','id = :bid', { 'bid' : 1 })
book.author.name = 'New author'
book.isbn = '3847302-SD'
book.title = 'New Title'
DB.store(book)
print(book)
#--------------------------------------
# DELETE 1 [delete single record]
#--------------------------------------
book = DB.find('book','id = :bid', { 'bid' : 1 })
DB.drop(book)
#--------------------------------------
# DELETE 2 [delete all records]
#--------------------------------------
DB.dropAll('book')
FAQs
A nice database orm written in python
We found that alpha-orm 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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.