Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A mock library to help test Python code accessing Airtable using the
Python library <https://github.com/nicocanali/airtable-python>
__.
It keeps tables in RAM and can do basic operations.
The easiest way is using pip:
.. code:: sh
pip install airtablemock
In your test, you patch the whole airtable library:
.. code:: py
import unittest
import airtablemock
import mycode
@airtablemock.patch(mycode.__name__ + '.airtable')
class TestMyCode(unittest.TestCase):
def test_foo():
# This is a client for the base "baseID", it will not access the real
# Airtable service but only the mock one which keeps data in RAM.
client = airtablemock.Airtable('baseID', 'apiKey')
# Populate the table.
client.create('table-foo', {'field1': 1, 'field2': 'two'})
# Run your code that uses Airtable, it should transparently uses the table
# above.
mycode.run()
# Access the table again to check if anything was modified.
records = client.get('table-foo')
…
To create a new release of airtablemock, tag the Git repo and run:
.. code:: sh
python setup.py sdist bdist_wheel
twine upload dist/airtablemock-*
FAQs
Mock library for the airtable python client
We found that airtablemock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.