pax_global_header 0000666 0000000 0000000 00000000064 13355644213 0014520 g ustar 00root root 0000000 0000000 52 comment=7aaf2f4569776624c17a371154729d4c772522a0
isbnlib-3.9.3/ 0000775 0000000 0000000 00000000000 13355644213 0013156 5 ustar 00root root 0000000 0000000 isbnlib-3.9.3/.appveyor.yml 0000664 0000000 0000000 00000002640 13355644213 0015626 0 ustar 00root root 0000000 0000000 version: '3.9.3.{build}'
branches:
only:
- /v3.9.3/
environment:
matrix:
- TOXENV: "py36"
TOXPYTHON: "C:\\Python36-x64\\python.exe"
PYTHON_HOME: "C:\\Python36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
- TOXENV: "py35"
TOXPYTHON: "C:\\Python35\\python.exe"
PYTHON_HOME: "C:\\Python35"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
- TOXENV: "py34"
TOXPYTHON: "C:\\Python34-x64\\python.exe"
PYTHON_HOME: "C:\\Python34-x64"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "32"
- TOXENV: "py27"
TOXPYTHON: "C:\\Python27-x64\\python.exe"
PYTHON_HOME: "C:\\Python27-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
- TOXENV: "py27"
TOXPYTHON: "C:\\Python27\\python.exe"
PYTHON_HOME: "C:\\Python27"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
init:
- "ECHO %TOXENV%"
- "ECHO %TOXPYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- ps: (new-object net.webclient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', 'C:/get-pip.py')
- "%TOXPYTHON% C:/get-pip.py"
- "%PYTHON_HOME%/Scripts/pip.exe install -r requirements-appveyor.txt"
build: false # First tests then build (is python not C)
test_script:
- "%PYTHON_HOME%\\Scripts\\tox -e %TOXENV%"
# clone_folder: 'c:\\projects\\isbnlib'
# after_test:
# - "%TOXPYTHON% setup.py bdist_wheel"
# - ps: "ls dist"
# artifacts:
# - path: 'dist\\*.whl'
isbnlib-3.9.3/.checkignore 0000664 0000000 0000000 00000000067 13355644213 0015443 0 ustar 00root root 0000000 0000000 # Ignore folder content
isbnlib/test/*
isbnlib/_data/*
isbnlib-3.9.3/.coveragerc 0000664 0000000 0000000 00000001435 13355644213 0015302 0 ustar 00root root 0000000 0000000 [run]
source = isbnlib
branch = True
[report]
# Regexes for directories to exclude from consideration
omit =
*/test/*
*/python?.?/*
*/site-packages/nose/*
*version*
*isbndb*
*fmt*
*bouth*
*lab*
*__init__*
*files.py
*cache*
*exceptions*
*registry.py*
*console*
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
ignore_errors = True
fail_under = 90
isbnlib-3.9.3/.editorconfig 0000664 0000000 0000000 00000000536 13355644213 0015637 0 ustar 00root root 0000000 0000000 # EditorConfig.org
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{py,md,rst,txt,conf,cfg}]
charset = utf-8
[*.py]
indent_style = space
indent_size = 4
[*.{md,rst}]
trim_trailing_whitespace = false
[{appveyor.yml,.travis.yml}]
indent_style = space
indent_size = 2
[Makefile]
indent_style = tab
isbnlib-3.9.3/.flake8 0000664 0000000 0000000 00000000134 13355644213 0014327 0 ustar 00root root 0000000 0000000 ignore=N806,I100,I101,I201,N802,C901,E722,E741
exclude=*/test/*,*/_data/*
max-complexity=13
isbnlib-3.9.3/.gitattributes 0000664 0000000 0000000 00000000263 13355644213 0016052 0 ustar 00root root 0000000 0000000 # Auto detect text files and perform LF normalization
# set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Python
*.py text eol=lf diff=python
isbnlib-3.9.3/.github/ 0000775 0000000 0000000 00000000000 13355644213 0014516 5 ustar 00root root 0000000 0000000 isbnlib-3.9.3/.github/CODEOWNERS 0000664 0000000 0000000 00000000042 13355644213 0016105 0 ustar 00root root 0000000 0000000 isbnlib/* @xlcnd
docs/* @xlcnd
isbnlib-3.9.3/.github/PULL_REQUEST_TEMPLATE.md 0000664 0000000 0000000 00000000211 13355644213 0020311 0 ustar 00root root 0000000 0000000 **IMPORTANT**
Make your pull request against the ``dev`` branch, please!
Changes proposed in this pull request:
-
-
-
@xlcnd
isbnlib-3.9.3/.gitignore 0000664 0000000 0000000 00000000460 13355644213 0015146 0 ustar 00root root 0000000 0000000 *(copy)*
*bak*
*.*~
*.mo
*.egg-info
*.egg
*.EGG
*.EGG-INFO
*-local*
build/
develop-eggs/
eggs/
fake-eggs/
parts/
dist/
_build/
*.pyc
*.pyo
*.tmp*
*.swp
*.vim
.tox/
*.log
*.sh
.coverage
.bandit
.metacache
*tasks
LAB/
apps/
spin/
LAB_*
*LAB*
CHECKLIST
TODO
*release*
.virtualenv
*yop*
Makefile
CONTRIB
LIB
isbnlib-3.9.3/.hound.yml 0000664 0000000 0000000 00000000111 13355644213 0015065 0 ustar 00root root 0000000 0000000 python:
enabled: true
config_file: .flake8
fail_on_violations: true
isbnlib-3.9.3/.isort.cfg 0000664 0000000 0000000 00000000032 13355644213 0015050 0 ustar 00root root 0000000 0000000 [settings]
line_length=80
isbnlib-3.9.3/.mention-bot 0000664 0000000 0000000 00000000030 13355644213 0015403 0 ustar 00root root 0000000 0000000 {
"maxReviewers": 1
}
isbnlib-3.9.3/.noserc 0000664 0000000 0000000 00000000147 13355644213 0014452 0 ustar 00root root 0000000 0000000 [nosetests]
verbosity=1
with-coverage=1
cover-package=isbnlib
cover-branches=1
cover-min-percentage=99
isbnlib-3.9.3/.pep257 0000664 0000000 0000000 00000000025 13355644213 0014176 0 ustar 00root root 0000000 0000000 [pep257]
ignore=D203
isbnlib-3.9.3/.pylintrc 0000664 0000000 0000000 00000030354 13355644213 0015030 0 ustar 00root root 0000000 0000000 [MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS,_data,test
# Pickle collected data for later comparisons.
persistent=yes
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
# Use multiple processes to speed up Pylint.
jobs=1
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-whitelist=
# Allow optimization of some AST trees. This will activate a peephole AST
# optimizer, which will apply various small optimizations. For instance, it can
# be used to obtain the result of joining multiple strings with the addition
# operator. Joining a lot of strings can lead to a maximum recursion error in
# Pylint and this flag can prevent that. It has one side effect, the resulting
# AST will be different than the one from reality.
optimize-ast=no
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
confidence=
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
#enable=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=cmp-method,round-builtin,suppressed-message,old-division,hex-method,coerce-builtin,import-star-module-level,long-builtin,cmp-builtin,backtick,setslice-method,raw_input-builtin,unichr-builtin,no-absolute-import,standarderror-builtin,file-builtin,next-method-called,getslice-method,reduce-builtin,indexing-exception,xrange-builtin,buffer-builtin,dict-view-method,reload-builtin,coerce-method,print-statement,basestring-builtin,nonzero-method,input-builtin,range-builtin-not-iterating,useless-suppression,old-ne-operator,long-suffix,parameter-unpacking,raising-string,unpacking-in-except,map-builtin-not-iterating,apply-builtin,unicode-builtin,delslice-method,filter-builtin-not-iterating,zip-builtin-not-iterating,intern-builtin,using-cmp-argument,metaclass-assignment,oct-method,old-octal-literal,dict-iter-method,execfile-builtin,old-raise-syntax,global-statement,file-ignored,invalid-name
[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
# (visual studio) and html. You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format=text
# Put messages in a separate file for each module / package specified on the
# command line instead of printing them on stdout. Reports (if any) will be
# written in a file name "pylint_global.[txt|html]".
files-output=no
# Tells whether to display a full report or only the messages
reports=yes
# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details
#msg-template=
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,XXX,TODO
[VARIABLES]
# Tells whether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=_$|dummy
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=
# List of strings which can identify a callback function by name. A callback
# name must start or end with one of those strings.
callbacks=cb_,_cb
[LOGGING]
# Logging modules to check that the string format arguments are in logging
# function parameter format
logging-modules=logging
[SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines=4
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=no
[SPELLING]
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package.
spelling-dict=
# List of comma separated words that should not be checked.
spelling-ignore-words=
# A path to a file that contains private dictionary; one word per line.
spelling-private-dict-file=
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
spelling-store-unknown-words=no
[BASIC]
# List of builtins function names that should not be used, separated by a comma
bad-functions=map,filter
# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,ex,Run,_
# Bad variable names which should always be refused, separated by a comma
bad-names=foo,bar,baz,toto,tutu,tata
# Colon-delimited sets of names that determine each other's naming style when
# the name regexes allow several styles.
name-group=
# Include a hint for the correct naming format with invalid-name
include-naming-hint=no
# Regular expression matching correct argument names
argument-rgx=[a-z_][a-z0-9_]{2,30}$
# Naming hint for argument names
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
# Regular expression matching correct function names
function-rgx=[a-z_][a-z0-9_]{2,30}$
# Naming hint for function names
function-name-hint=[a-z_][a-z0-9_]{2,30}$
# Regular expression matching correct method names
method-rgx=[a-z_][a-z0-9_]{2,30}$
# Naming hint for method names
method-name-hint=[a-z_][a-z0-9_]{2,30}$
# Regular expression matching correct attribute names
attr-rgx=[a-z_][a-z0-9_]{2,30}$
# Naming hint for attribute names
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
# Regular expression matching correct class names
class-rgx=[A-Z_][a-zA-Z0-9]+$
# Naming hint for class names
class-name-hint=[A-Z_][a-zA-Z0-9]+$
# Regular expression matching correct inline iteration names
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
# Naming hint for inline iteration names
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
# Regular expression matching correct variable names
variable-rgx=[a-z_][a-z0-9_]{2,30}$
# Naming hint for variable names
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
# Regular expression matching correct class attribute names
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
# Naming hint for class attribute names
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
# Regular expression matching correct constant names
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
# Naming hint for constant names
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
# Regular expression matching correct module names
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
# Naming hint for module names
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
# Regular expression which should only match function or class names that do
# not require a docstring.
no-docstring-rgx=^_
# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
docstring-min-length=-1
[ELIF]
# Maximum number of nested blocks for function / method body
max-nested-blocks=5
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=100
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )??$
# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no
# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,dict-separator
# Maximum number of lines in a module
max-module-lines=1000
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren=4
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=
[TYPECHECK]
# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=
# List of classes names for which member attributes should not be checked
# (useful for classes with attributes dynamically set). This supports can work
# with qualified names.
ignored-classes=
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=
[DESIGN]
# Maximum number of arguments for function / method
max-args=5
# Argument names that match this expression will be ignored. Default to name
# with leading underscore
ignored-argument-names=_.*
# Maximum number of locals for function / method body
max-locals=15
# Maximum number of return / yield for function / method body
max-returns=6
# Maximum number of branch for function / method body
max-branches=12
# Maximum number of statements in function / method body
max-statements=50
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of attributes for a class (see R0902).
max-attributes=7
# Minimum number of public methods for a class (see R0903).
min-public-methods=2
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
# Maximum number of boolean expressions in a if statement
max-bool-expr=5
[CLASSES]
# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,__new__,setUp
# List of valid names for the first argument in a class method.
valid-classmethod-first-arg=cls
# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=mcs
# List of member names, which should be excluded from the protected access
# warning.
exclude-protected=_asdict,_fields,_replace,_source,_make
[IMPORTS]
# Deprecated modules which should not be used, separated by a comma
deprecated-modules=optparse
# Create a graph of every (i.e. internal and external) dependencies in the
# given file (report RP0402 must not be disabled)
import-graph=
# Create a graph of external dependencies in the given file (report RP0402 must
# not be disabled)
ext-import-graph=
# Create a graph of internal dependencies in the given file (report RP0402 must
# not be disabled)
int-import-graph=
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
isbnlib-3.9.3/.style.yapf 0000664 0000000 0000000 00000000036 13355644213 0015254 0 ustar 00root root 0000000 0000000 [style]
based_on_style = pep8
isbnlib-3.9.3/.travis.yml 0000664 0000000 0000000 00000002646 13355644213 0015277 0 ustar 00root root 0000000 0000000 sudo: false
language: python
branches:
only:
- v3.9.3
matrix:
include:
- os: osx
language: generic
env: TOXENV=py37
- python: "2.7"
env: TOXENV=py27
- python: "3.6"
env: TOXENV=py36
- python: "3.5"
env: TOXENV=py35
- python: "3.4"
env: TOXENV=py34
- python: "nightly"
env: TOXENV=nightly
- python: "2.7"
env: TOXENV=checkers
- python: "2.7"
env: DOC=sphinx
allow_failures:
- env: TOXENV=nightly
- env: TOXENV=py34
- env: TOXENV=checkers
install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew upgrade python && python --version; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip3 install tox; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then pip install tox; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install flake8; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install pep8-naming; fi
- if [[ $TOXENV == 'py27' ]]; then pip install coveralls; fi
- if [[ $DOC == 'sphinx' ]]; then pip install sphinx; fi
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then pip install yapf; fi
script:
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]] && [[ $TOXENV == 'checkers' ]]; then yapf -i isbnlib; fi
- if [[ ! -z $TOXENV ]]; then tox -e $TOXENV; fi
- if [[ $DOC == 'sphinx' ]]; then cd docs; sphinx-build -n -b html -d _build/.doctrees . _build/html; fi
after_success:
- if [[ $TOXENV == 'py27' ]]; then coveralls; fi
notifications:
email: false
isbnlib-3.9.3/CHANGES.txt 0000664 0000000 0000000 00000005357 13355644213 0015001 0 ustar 00root root 0000000 0000000 v3.3.3, 2014-06-16 -- Initial release (based in `isbntools 3.3.3)`.
v3.3.4, 2014-06-16 -- Fix small bug with wheel package (based in `isbntools 3.3.3)`.
v3.3.5, 2014-06-22 -- Fix bug in 'notisbn' (based in `isbntools 3.3.4)`.
v3.3.6, 2014-06-30 -- Small improvements and optional ShelveCache.
v3.3.7, 2014-07-07 -- Fix issue #2, better debug logging and expose top exceptions.
v3.3.8, 2014-07-07 -- Fix wrong logging identifier.
v3.3.9, 2014-07-13 -- Mark as not valid ISBN-13 in series not allocated yet.
v3.4.1, 2014-07-16 -- Fix bug #7 and small improvements on the API.
v3.4.2, 2014-08-13 -- Add `doi2tex` and updated data.
v3.4.3, 2015-01-13 -- Better LOOSE regex and allow 'x' in canonical.
v3.4.4, 2015-01-26 -- Helpers sprint and fake_isbn.
v3.4.5, 2015-02-05 -- Better yield for openl and better log model.
v3.4.6, 2015-02-05 -- Fix bug #13.
v3.4.7, 2015-02-11 -- Fix bug #14.
v3.4.8, 2015-02-25 -- Fix bug #16, add 'desc' and 'cover' features.
v3.4.9, 2015-02-27 -- Fix issue #17 and bug #18, data range 20150227.
v3.5.1, 2015-03-10 -- New CoversCache and better unicode printing in Windows.
v3.5.2, 2015-03-15 -- Fix bug #19, relative paths on coverscache and data range 20150310.
v3.5.3, 2015-03-26 -- Add throttling for web services, data range 20150325 and 'in memory' keys cache.
v3.5.4, 2015-04-10 -- Issue #20, fix bugs #21 and #22 and data range 20150401.
v3.5.5, 2015-04-22 -- Add logging to vias, fix bug #23, and data range 20150422.
v3.5.6, 2015-06-03 -- Deprecated 'bouth23' and data range 20150603.
v3.5.7, 2015-11-22 -- Support for py35 and pypy3 and data range 20151118.
v3.5.8, 2016-03-07 -- Issue #28 (closing down of xISBN service).
v3.5.9, 2016-06-17 -- Improved data quality (close #39 and #40) and new cover (close issue #42).
v3.6.1, 2016-06-21 -- Improved data quality (#39 and #40), new cover (#42) and streamlined.
v3.6.2, 2016-09-06 -- Updated data.
v3.6.3, 2016-11-09 -- Updated data.
v3.6.4, 2016-11-12 -- Fix bug #46.
v3.6.5, 2016-12-08 -- Updated data.
v3.6.6, 2017-01-05 -- Fix bug #47.
v3.6.7, 2017-03-11 -- Updated data.
v3.6.8, 2017-03-31 -- New functions: check_digit10 and check_digit13.
v3.7.1, 2017-05-24 -- Fix #43 (bump middle version).
v3.7.2, 2017-06-19 -- Restore xID (improved data quality close #28).
v3.7.3, 2018-01-08 -- Updated data.
v3.7.4, 2018-01-08 -- Add support for CSL-JSON format (close #48).
v3.8.1, 2018-01-24 -- BREAK: stop support for py26, py33 and isbndb.
v3.8.2, 2018-01-24 -- Fix bug 'in_virtual'.
v3.8.3, 2018-01-29 -- Add 'wcat' to editions.
v3.8.4, 2018-03-06 -- Solve issues with non-ASCII searchs in 'from_words'.
v3.8.5, 2018-06-14 -- NOT RELEASED.
v3.9.1, 2018-07-02 -- Issue #51 (closing down of xISBN service).
v3.9.2, 2018-09-28 -- Updated data.
v3.9.3, 2018-10-05 -- make it easier to override 'WEBService.data'.
isbnlib-3.9.3/CODE_OF_CONDUCT.md 0000664 0000000 0000000 00000006172 13355644213 0015763 0 ustar 00root root 0000000 0000000 # Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [xlcnd@outlook.com]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
isbnlib-3.9.3/CONTRIBUTING.md 0000664 0000000 0000000 00000012463 13355644213 0015415 0 ustar 00root root 0000000 0000000 # How to Contribute
`isbnlib` has a very small code base, so it is a good project to begin your
adventure in open-source.
> **NOTE**: By contributing you agree with the [license terms](LICENSE-LGPL.txt)
(**LGPL v3**) of the project.
## Main Steps
1. Make sure you have a [GitHub account](https://github.com/signup/free)
2. Submit a ticket for your issue or idea
([help](https://www.youtube.com/watch?v=TJlYiMp8FuY)),
on https://github.com/xlcnd/isbnlib/issues,
(if possible wait for some feedback before any serious commitment... :)
3. **Fork** the repository on GitHub and **clone it locally**
([help](https://help.github.com/articles/fork-a-repo)).
4. `pip install -r requirements-dev.txt` (at your local directory).
5. Do your code... (**remember the code must run on python 2.7, 3.4, 3.5, 3.6
and be OS independent** It is easier if you start to write in python 3 and then
adapt for python 2) (you will find [Travis](https://travis-ci.org/xlcnd/isbnlib) very handy for
testing with this requirement!)
6. Write tests for your code using `nose` and put then in the directory `isbnlib/test`
7. Pass **all tests** and with **coverage > 90%**.
Check the coverage in [Coveralls](https://coveralls.io/r/xlcnd/isbnlib) or locally with the command
`nosetests --with-coverage --cover-package=isbnlib`.
8. **Check if all requirements are fulfilled**!
9. **Push** your local changes to GitHub and make there a **pull request**
([help](https://help.github.com/articles/using-pull-requests/))
**using `dev` as base branch** (by the way, we follow the *fork & pull* model with this small change).
> **NOTE**: *Travis*, *coverage*, *flake8* and *pylint*, have already
configuration files adapted to the project.
## Style
Your code **must** be [PEP8](http://legacy.python.org/dev/peps/pep-0008/) compliant
and be concise as possible (use `yapf` then check it with
`flake8` and `pylint`).
Use doc strings ([PEP257](http://legacy.python.org/dev/peps/pep-0257/))
for users and comments (**few**) as signposts
for fellow developers. Make your code as clear as possible.
## Red Lines
**Don't submit pull requests that are only comments to the code that is
already in the repo!**
Don't expect kindness if you do that :) You **can** comment and give
suggestions on the code at the
[issues](https://github.com/xlcnd/isbnlib/issues/5) page.
**No** doc tests! Remember point 6 above.
**Don't** submit pull requests without checking point 8!
## Suggestions
Read the code in a structured way at [sourcegraph](https://sourcegraph.com/github.com/xlcnd/isbnlib).
Goto [issues/enhancement](https://github.com/xlcnd/isbnlib/issues?labels=enhancement&page=1&state=open)
for possible enhancements to the code.
If you have some idea that is not there enter your own.
Select some focused issue and enter some comments on how you plan to tackle it.
Take a look at the project [isbntools](https://github.com/xlcnd/isbntools)
and see if your code can be written as a *pluggin* (a new metadata provider) or as
a *user script* [they are easier!]. For contributions to the core, you cannot use external
libraries (except standard lib), and must be pure python. There is a package prefix
`isbntools.contrib` where these requirements are not applied
(download a [template package](https://github.com/xlcnd/isbntools/raw/dev/PLUGIN.zip)).
## Important
If you don't have experience with these issues, don't be put off by these requirements,
see them as a learning opportunity. Thanks!
## Resources (for *newbies*)
### Minimum git & GitHub
- https://guides.github.com/activities/hello-world/
- https://guides.github.com/introduction/flow/index.html
- https://www.youtube.com/watch?v=IeW1Irw45hQ
- https://www.youtube.com/watch?v=U8GBXvdmHT4
- https://www.youtube.com/watch?v=9Blbj1HMROU
### More Resources by Topic
| **Topic** | **Resource** |
|----------------------------:|:------------------------------------------------------------------------|
| fork a repo | https://help.github.com/articles/fork-a-repo |
| pull request | https://help.github.com/articles/using-pull-requests/ |
| git log | https://www.youtube.com/watch?v=U8GBXvdmHT4 |
| local feature branchs | https://www.youtube.com/watch?v=ImhZj6tpXLE |
| git & GitHub tips | https://github.com/tiimgreen/github-cheat-sheet |
| | http://cbx33.github.io/gitt/intro.html |
| | http://git-scm.com/documentation |
| | http://gitimmersion.com/ |
| | http://www.youtube.com/playlist?list=PLq0VzNtDZbe9QLq8YCizFN2TVWvlLjrvX |
| nosetests | http://pythontesting.net/framework/nose/nose-introduction/ |
| contributing | https://www.youtube.com/watch?v=IXnNgLmd6BM |
| | http://openhatch.org/missions |
| | http://opensource.com/resources/how-get-started-open-source |
isbnlib-3.9.3/COPYRIGHT.txt 0000664 0000000 0000000 00000001341 13355644213 0015266 0 ustar 00root root 0000000 0000000
isbnlib - tools for extracting, cleaning and transforming ISBNs
Copyright (C) 2014-2018 Alexandre Lima Conde
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see .
isbnlib-3.9.3/LICENSE 0000664 0000000 0000000 00000016743 13355644213 0014176 0 ustar 00root root 0000000 0000000 GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
isbnlib-3.9.3/MANIFEST.in 0000664 0000000 0000000 00000000061 13355644213 0014711 0 ustar 00root root 0000000 0000000 include *.txt
include *.rst
include *.coveragerc
isbnlib-3.9.3/PLUGIN.zip 0000664 0000000 0000000 00000017427 13355644213 0014713 0 ustar 00root root 0000000 0000000 PK
fjL PLUGIN-isbndb/UT ԣZԣZux PK OKe PLUGIN-isbndb/.gitattributesUT eK0ZXZux %=
0AB(.:
-k[)MN_zq[UX+2wP ܢ7wN#:#Y>ISg3KH(Ldxi<0ӿR.?u9%;CSPK OKp9
PLUGIN-isbndb/LICENSE-LGPL.txtUT eK0ZXZux Ymoܸ_AWPp}N3K~J]6%%o̐u|89g:y}x~t}?Í¿ۏVYR[^|ǢP7nwv?T1Fs}[C[.՟]ŋuX/Kn?8AolיJuNt[ʆU+k5Pn-vֶ4m0reߘ[(WVnH|:M,>FX?WMk}|uϰmyAA,H\&=ZDݮ6;_xDkB`5BLY/z\YVAH\ʛ5$W|QłlݷĊ^5wv?r4
Y0a?єEp3B/u
ڒO9)7YYOSO^"wAiۃj%pEZF{h~kmJBso!c)2P0۰,$[XO:=9WTaa*S`KX)5g|u1q/c_E$mEN)rm@l+/+xOG]1\: &P&4#b],g( n&J}
XȎhT#|-gT%ł6 3l8kAJvWGl|-eș2{Ԗz8 $T'ΞyT_Kc? n`1lG> @AH []*g+CڮKRU~t&mUvmXG/E5tiqqPThщ
&Guߖ E)tecY)H5Y~
XlWzӊv63E1J_LFqEM@d&lkTԚy$grF@K\LPr-hm\Dbہ4 #h%4"^#^65?$B %}wn5=
{Yf~ L!'.p7Iw6a m^,Τm-1c]7L=(P}LZ:cEHUb