Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
App for export data in csv files from models with selected fields and custom filtration.
Useful for create reports and calculate some statistic data for external sources.
Python 2.6 or 2.7 and Django 1.3 and higher.
Install using pip:
$ pip install django-exportdata
Add exportdata
in INSTALLED_APPS
.
Create ~/exportdata/auth.User.csv file with all model data:
$ python manage.py exportdata auth.User
Set fields for export:
$ python manage.py exportdata app.model --fields=pk,model_field,get_absolute_url,method_property,fk__field
Set custom filtration (based on model manager methods and filter(field=value)
filtration):
$ python manage.py exportdata app.model --filters=active,paid,field=value,fk__field__gte=value
Set custom ordering:
$ python manage.py exportdata app.model --ordering=-created_on,title
Set "from and to" range values primary keys (pks) for export:
$ python manage.py exportdata app.model --range=1-100
Or set range with comma-separated values:
$ python manage.py exportdata app.model --range=1,2,3,4,5
Set custom file path for save:
$ python manage.py exportdata app.model --filepath=directory/filename.extension
Set fields when decorated models.permalink
(by default get_absolute_url
field). For adding the domain before data:
$ python manage.py exportdata app.model --permalinks=get_absolute_url,get_absolute_admin_url
###0.2 (2013-07-20)
--filters
option--range
option--filepath
option for set file for save data--permalinks
option for get models.permalink
decorated fields###0.1 (2013-07-13)
Initial release
FAQs
Export model data (with selected fields) to csv file
We found that django-exportdata 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.