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 Django application for calculating geohashes and exposing them via RESTful interface. Requires Django 1.8.x+ (takes advantage of updated argument parsing for custom management commands, see: Django 1.8 Release Notes for more information).
Install with pip:
pip install django-geohashing
Add "geohashing" and "rest_framework" to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'geohashing',
'rest_framework',
)
Create the geohashing tables by resyncing your models:
python manage.py migrate
Populate the table using the get_historical_djia
management command:
python manage.py get_historical_djia --start <date> --end <date>
The get_historical_djia
command takes two optional parameters:
--start
and --end
. These parameters accept date strings of the format
YYYY-MM-DD
. They may be used to limit the set of results from
which to database is populated (so for instance to only retrieve and process
only the 30 most recent DJIA openings instead of every opening since 1928).
The parameters are optional but their use is very much encouraged; otherwise tens of thousands of records will be retrieved and imported individually.
To expose the geohashing offsets via REST API, include geohashing.urls
in
your urls.py
. Though not strictly required, as a best practice a namespace
for the urls should be provided:
from django.conf.urls import url
urlpatterns = [
url(r'^geohashing/', include('geohashing.urls', namespace='geohashing')),
]
This project is still in an extremely early alpha stage. Tasks that still need to be tackled:
Update the importer to:
bulk_create
to improve
performance.get_current_djia
management command to be used for retrieving
today's opening value. Occasionally the various sources for the opening
value are initially inconsistent with one another. The management command
should handle this gracefully by waiting for consensus.Add unit tests and docs
Run Flake8 against the codebase and fix any glaring PEP-8 violations
Set up Continuous Integration...integration
FAQs
Django app for working with XKCD geohashing data
We found that django-geohashing 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.
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.