Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
The aws-sdk dynamo client is very close to the API, dyno tries to help reduce the amount of repetitive code needed to interact with dynamodb.
First it guesses types. Dynamo is very specific about its types:
{key:{S: 'value'}}
in dyno can be written like:
{key:'value'}
When dyno doesn't do anything to improve a command, it simply passes it through to aws-sdk dynamodb client.
This is the case right now with commands like scan
npm install dyno -S
var dyno = module.exports.dyno = require('dyno')({
awsKey: 'XXX',
awsSecret: 'XXX',
region: 'us-east-1',
table: 'test'
});
var item = {id: 'yo', range: 5};
dyno.putItem(item, function(err, resp){});
// multiple items
var items = [
{id: 'yo', range: 5},
{id: 'guten tag', range: 5},
{id: 'nihao', range: 5}
];
dyno.putItems(items, function(err, resp){})
Set the table name per command:
var item = {id: 'yo', range: 5};
dyno.putItem(item, {table:'myothertablename'}, function(err, resp){});
var key = {id: 'yo', range:5};
var item = {put:{a: 'oh hai'}, add:{count: 1}};
dyno.updateItem(key, item, function(err, resp){});
var keys = [
{id: 'yo', range: 5},
{id: 'guten tag', range: 5},
{id: 'nihao', range: 5}
];
dyno.deleteItems(keys, function(err, resp){})
var query = {id: {'EQ':'yo'}, {range:{'BETWEEN':[4,6]}};
dyno.query(query, function(err, resp){
assert.deepEqual(resp, {count : 1, items : [{id : 'yo', range : 5 }]});
});
dyno.query(query, {attributes:['range']}, function(err, resp){
assert.deepEqual(resp, {count : 1, items : [{range : 5 }]});
});
FAQs
Simple DynamoDB client
The npm package dyno receives a total of 19 weekly downloads. As such, dyno popularity was classified as not popular.
We found that dyno demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 43 open source maintainers 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.