Suspicious 80% python Download

anyconfig 0.9.11

Counterfeit dependency embeds suspicious binaries

Calls glob for filename searchOpens its own source via open(__file__

Evidence

Declares Python runtime dependencies METADATA · lines 30–36
30:19… :: Utilities
31Classifier: License :: OSI Approved :: MIT License
32Requires-Dist: setuptools
33Provides-Extra: devel
34Requires-Dist: coveralls ; extra == 'devel'
35Requires-Dist: flake8 (<3.5.0) ; extra == 'devel'
36Requires-Di …
Declares multi-function __all__ export list __init__.py · lines 1–43
1#
2# Copyright (C) 2012 - 2018 Satoru SATOH <ssato @ redhat.com>
3# Copyright (C) 2019 Satoru SATOH <satoru.satoh@gmail.com>
4# License: MIT
5#
6# For 'anyconfig.open':
7# pylint: disable=redefined-builtin
8r"""
⋯4 lines
13python-anyconfig is a `MIT licensed <http://opensource.org/licenses/MIT>`_
14python library provides common APIs to access to configuration files in various
15formats with some useful features such as contents merge, templates and schema
16validation/generation support.
17
18- Home: https://github.com/ssato/python-anyconfig
19- (Latest) Doc: http://python-anyconfig.readthedocs.org/en/latest/
20- PyPI: https://pypi.python.org/pypi/anyconfig
21- Copr RPM repos: https://copr.fedoraproject.org/coprs/ssato/python-anyconfig/
22
23"""
24from .globals import AUTHOR, VERSION
25from .api import (
26 single_load, multi_load, load, loads, dump, dumps, validate, gen_schema,
27 list_types, find, findall, merge, get, set_, open,
28 MS_REPLACE, MS_NO_REPLACE, MS_DICTS, MS_DICTS_AND_LISTS,
29 UnknownProcessorTypeError, UnknownFileTypeError
30)
31
32__author__ = AUTHOR
33__version__ = VERSION
34
35__all__ = [
36 "single_load", "multi_load", "load", "loads", "dump", "dumps", "validate",
37 "gen_schema", "list_types", "find", "findall", "merge",
⋯6 lines
Email address suffix @gmail.com api.py · lines 1–15
1#
2# Copyright (C) 2012 - 2018 Satoru SATOH <ssato @ redhat.com>
3# Copyright (C) 2019 Satoru SATOH <satoru.satoh@gmail.com>
4# License: MIT
5#
6# pylint: disable=unused-import,import-error,invalid-name
7r"""Public APIs of anyconfig module.
8
9.. versionchanged:: 0.9.9
10
11 - Removed the API 'find_loader'
12 - Added new APIs :func:`find` and :func:`findall` to :func:`find parsers`
13 (loaders and dumpers) to suppport to find multiple parsers, and replace
14 the API 'find_loader'
15 - Added new APIs :func:`list_by_c …
imports pickle pickle.py · lines 1–48
⋯5 lines
6
7- Format to support: Pickle
8- Requirements: It should be available always.
9
10 - pickle/cPickle in python 2 standard library:
⋯4 lines
15
16- Development Status :: 4 - Beta
17- Limitations: The parser cannot load some primitive data such like '' (empty
18 string), ' ' (white space) and [] (empty list) as these are because of the
19 implementation of :func:`anyconfig.backend.base.load_with_fn`.
20- Special options: All options of pickle.{load{s,},dump{s,}} should work.
21
22Changelog:
23
24.. versionchanged:: 0.9.7
25
26 - Add support of loading primitives other than mapping objects.
27
28.. versionadded:: 0.8.3
29"""
30from __future__ import absolute_import
31
32try:
33 import cPickle as pickle
34except ImportError:
35 import pickle
36
37import anyconfig.backend.base
38import anyconfig.compat
39
40
⋯8 lines
imports os properties.py · lines 30–58
30:3… pyjavaproperties module.
31"""
32from __future__ import absolute_import
33
34import logging
35import os
36import re
37
38import anyconfig.backend.base
39import anyconfig.compat
40
41
⋯17 lines

Showing the top 5 files — 3 more files (27 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.