Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Cookiecutter templates discovery and management.
Usage::
$ pip install cookiejar
$ cookiejar create <templatename> [options]
Will use cookiecutter <https://github.com/audreyr/cookiecutter>
_ to create a new package from the template.
All options can be specified on the command-line. Users can override everything by creating a config file at ~/.cookiejar/cookiejarrc
.
You can list, search and download templates from a 'templates index'.
The following commands are available::
$ cookiejar list [--index=<index>]
$ cookiejar search <text> [--index=<index>]
$ cookiejar add <package_name> [<url>] [--index=<index>]
$ cookiejar installed
$ cookiejar remove <package_name>
To create a new package::
$ cookiejar create <template_name> [options]
list
^^^^^^^^
Lists all templates available on the index.
--index=<url>
Optional. Specifies an alternative index to use.
``search``
^^^^^^^^^^
Lists available templates on the index whose name contains the specified text.
Options
-------
``<text>``
~~~~~~~~~~
Required. Text to look for in the index.
``--index=<url>``
Optional. Specifies an alternative index to use.
add
^^^^^^^
Downloads the specified template to your ~/.cookiecutters/templates/
directory.
<template_name>
Required. The template you want to download.
``<url>``
~~~~~~~~~
Optional. If specified, downloads the template from there instead of using the index. Accepts ``pip``-like URLs, as ``git+https://github.com/user/repo.git``.
``--index=<url>``
~~~~~~~~~~~~~~~~~
Optional. Specifies an alternative index to use.
``installed``
^^^^^^^^^^^^^
Lists templates that have already been downloaded.
``remove``
^^^^^^^^^^
Deletes the specified template from your ``~/.cookiecutters/templates/`` directory.
Options
-------
``<template_name>``
Required. The template you want to remove.
create
^^^^^^^^^^
Creates a new package using the specified template.
<template_name>
Required. The template you to use.
``[options]``
~~~~~~~~~~~~~
Optional. Any options specified will be added to cookiecutter's context when creating the package. Options are specified as ``--key=value``.
TODO
====
* add ``register`` and ``upload`` commands
* use an actual REST API and server (requires $$ for the infrastructure)
* put a pretty picture of a cookie jar in this readme.
Status
======
This software should be considered Alpha.
License
=======
This project is released under the MIT License.
FAQs
Cookiecutter templates discovery and management.
We found that cookiejar 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.