wwpdb.utils.seqdb-v2 0.13__tar.gz → 0.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. wwpdb_utils_seqdb_v2-0.14/.gitignore +109 -0
  2. wwpdb_utils_seqdb_v2-0.14/PKG-INFO +67 -0
  3. wwpdb_utils_seqdb_v2-0.14/pyproject.toml +140 -0
  4. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/BlastProcess.py +83 -84
  5. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/FastaUtil.py +19 -17
  6. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/FetchNcbiXml.py +9 -12
  7. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/FetchUniProtEntry.py +14 -10
  8. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/FetchUnpXml.py +59 -85
  9. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/NcbiBlastService.py +11 -8
  10. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/ReadNcbiBlastXml.py +16 -13
  11. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/ReadNcbiSummary.py +15 -14
  12. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/ReadNcbiXml.py +16 -14
  13. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/ReadUnpBlastXml.py +21 -23
  14. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/ReadUnpXml.py +47 -121
  15. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/UnpBlastService.py +16 -12
  16. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/__init__.py +1 -1
  17. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/wwpdb/utils/seqdb_v2/mmCIFUtil.py +2 -10
  18. wwpdb.utils.seqdb_v2-0.13/PKG-INFO +0 -29
  19. wwpdb.utils.seqdb_v2-0.13/setup.cfg +0 -10
  20. wwpdb.utils.seqdb_v2-0.13/setup.py +0 -65
  21. wwpdb.utils.seqdb_v2-0.13/wwpdb/__init__.py +0 -1
  22. wwpdb.utils.seqdb_v2-0.13/wwpdb/utils/__init__.py +0 -1
  23. wwpdb.utils.seqdb_v2-0.13/wwpdb.utils.seqdb_v2.egg-info/PKG-INFO +0 -29
  24. wwpdb.utils.seqdb_v2-0.13/wwpdb.utils.seqdb_v2.egg-info/SOURCES.txt +0 -25
  25. wwpdb.utils.seqdb_v2-0.13/wwpdb.utils.seqdb_v2.egg-info/dependency_links.txt +0 -1
  26. wwpdb.utils.seqdb_v2-0.13/wwpdb.utils.seqdb_v2.egg-info/not-zip-safe +0 -1
  27. wwpdb.utils.seqdb_v2-0.13/wwpdb.utils.seqdb_v2.egg-info/requires.txt +0 -10
  28. wwpdb.utils.seqdb_v2-0.13/wwpdb.utils.seqdb_v2.egg-info/top_level.txt +0 -1
  29. {wwpdb.utils.seqdb_v2-0.13 → wwpdb_utils_seqdb_v2-0.14}/README.md +0 -0
@@ -0,0 +1,109 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ .hypothesis/
48
+ .pytest_cache/
49
+
50
+ # Translations
51
+ *.mo
52
+ *.pot
53
+
54
+ # Django stuff:
55
+ *.log
56
+ local_settings.py
57
+ db.sqlite3
58
+
59
+ # Flask stuff:
60
+ instance/
61
+ .webassets-cache
62
+
63
+ # Scrapy stuff:
64
+ .scrapy
65
+
66
+ # Sphinx documentation
67
+ docs/_build/
68
+
69
+ # PyBuilder
70
+ target/
71
+
72
+ # Jupyter Notebook
73
+ .ipynb_checkpoints
74
+
75
+ # pyenv
76
+ .python-version
77
+
78
+ # celery beat schedule file
79
+ celerybeat-schedule
80
+
81
+ # SageMath parsed files
82
+ *.sage.py
83
+
84
+ # Environments
85
+ .env
86
+ .venv
87
+ env/
88
+ venv/
89
+ ENV/
90
+ env.bak/
91
+ venv.bak/
92
+
93
+ # Spyder project settings
94
+ .spyderproject
95
+ .spyproject
96
+
97
+ # Rope project settings
98
+ .ropeproject
99
+
100
+ # mkdocs documentation
101
+ /site
102
+
103
+ # mypy
104
+ .mypy_cache/
105
+
106
+ test-output
107
+
108
+ # emacs autosave
109
+ *~
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: wwpdb.utils.seqdb-v2
3
+ Version: 0.14
4
+ Summary: wwPDB Sequence search utilities
5
+ Project-URL: Homepage, https://github.com/rcsb/py-wwpdb_utils_seqdb_v2
6
+ Author-email: Ezra Peisach <ezra.peisach@rcsb.org>
7
+ License-Expression: Apache-2.0
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.6
15
+ Classifier: Programming Language :: Python :: 3.7
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Requires-Python: >=3.6
19
+ Requires-Dist: mmcif
20
+ Requires-Dist: mmcif-utils
21
+ Requires-Dist: requests
22
+ Requires-Dist: wwpdb-utils-config>=0.33
23
+ Description-Content-Type: text/markdown
24
+
25
+ # OneDep Sequence Search/Retrieval Library
26
+
27
+ Master: [![Build Status](https://dev.azure.com/wwPDB/wwPDB%20Python%20Projects/_apis/build/status/wwPDB.py-wwpdb_utils_seqdb_v2?branchName=master)](https://dev.azure.com/wwPDB/wwPDB%20Python%20Projects/_build/latest?definitionId=10&branchName=master)
28
+
29
+ Develop: [![Build Status](https://dev.azure.com/wwPDB/wwPDB%20Python%20Projects/_apis/build/status/wwPDB.py-wwpdb_utils_seqdb_v2?branchName=develop)](https://dev.azure.com/wwPDB/wwPDB%20Python%20Projects/_build/latest?definitionId=10&branchName=develop)
30
+
31
+ ## Introduction
32
+
33
+ This repository povides the tools and access to remote sequence search and retrieval.
34
+
35
+ ### Installation
36
+
37
+ Download the library source software from the project repository:
38
+
39
+ ```bash
40
+
41
+ git clone --recurse-submodules https://github.com/wwpdb/py-wwpdb_utils_seqdb_v2.git
42
+
43
+ ```
44
+
45
+ Optionally, run test suite using the Tox test runner
46
+
47
+ ```bash
48
+ python setup.py test
49
+
50
+ or simply run
51
+
52
+ tox
53
+
54
+ If the environment variable MOCKREQUESTS is set, the tests will not contact any remote servers.
55
+
56
+
57
+ Installation is via the program [pip](https://pypi.python.org/pypi/pip).
58
+
59
+ ```bash
60
+ pip install wwpdb.utils.seqdb_v2
61
+
62
+ or from the local repository:
63
+
64
+ pip install .
65
+ ```
66
+
67
+
@@ -0,0 +1,140 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "wwpdb.utils.seqdb-v2"
7
+ dynamic = ["version"]
8
+ description = "wwPDB Sequence search utilities"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ authors = [
12
+ { name = "Ezra Peisach", email = "ezra.peisach@rcsb.org" },
13
+ ]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: Apache Software License",
18
+ "Natural Language :: English",
19
+ "Programming Language :: Python",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.6",
22
+ "Programming Language :: Python :: 3.7",
23
+ "Programming Language :: Python :: 3.8",
24
+ "Programming Language :: Python :: 3.9",
25
+ ]
26
+ dependencies = [
27
+ "mmcif",
28
+ "mmcif.utils",
29
+ "requests",
30
+ "wwpdb.utils.config >= 0.33",
31
+ ]
32
+
33
+ requires-python = ">=3.6"
34
+
35
+
36
+ [project.urls]
37
+ Homepage = "https://github.com/rcsb/py-wwpdb_utils_seqdb_v2"
38
+
39
+ [tool.hatch.version]
40
+ path = "wwpdb/utils/seqdb_v2/__init__.py"
41
+
42
+ [tool.hatch.build.targets.sdist]
43
+ include = [
44
+ "/wwpdb",
45
+ ]
46
+ exclude = ["/wwpdb/mock-data"]
47
+
48
+ [tool.hatch.build.targets.wheel]
49
+ packages = ["wwpdb"]
50
+
51
+ exclude = ["/wwpdb/mock-data"]
52
+
53
+ #=================================== Ruff basics =============================#
54
+
55
+ line-length = 120 # 120 is hatch's default via 'hatch init'
56
+ include = [
57
+ "*.py", # Source
58
+ "pyproject.toml", # This file (RUF rules only)
59
+ "*.ipynb", # Jupyter notebooks
60
+ ]
61
+
62
+ #
63
+ #=================================== Ruff lint ==============================#
64
+
65
+ [tool.ruff.lint]
66
+
67
+ #
68
+ # ------------------------- Ruff misc. options ----------------------
69
+ preview = true
70
+ explicit-preview-rules = true
71
+
72
+ ignore = [
73
+ "FBT002", # Boolean default positional argument in function definition
74
+ "FURB113", # Use `stPL.extend(...)` instead of repeatedly calling `stPL.append()`
75
+ "INP001", # File `xx` is part of an implicit namespace package. Add an `__init__.py
76
+ "N801", # Class name `markdownTests` should use CapWords convention
77
+ "N802", # Function name should be lowercase
78
+ "N803", # Argument name should be lowercase
79
+ "N806", # in function should be lowercase
80
+ "N816", # Variable in global scope should not be mixedCase
81
+ "N999", # Invalid module name,
82
+ "PERF401", # Use a list comprehension to create a transformed list
83
+ "PLR1714", # Consider merging multiple comparisons
84
+ "PLR2004", # Magic value used in comparison, consider replacing
85
+ "PLR6201", # Use a `set` literal when testing for membership
86
+ "PLW1514", # `open` in text mode without explicit `encoding` argument
87
+ "PT009", # Use a regular `assert` instead of unittest-style `assertGreater`
88
+ "RET504", # Unnecessary assignment to `X` before `return` statement
89
+ "RUF100", # RUF REMOVES FLAKE8 noqa!
90
+ "S110", # `try`-`except`-`pass` detected, consider logging the exception
91
+ "SIM103", # Return the condition directly
92
+ "SIM108", # Use ternary operator
93
+ "SIM115", # Use context handler for opening files
94
+ "TRY300", # Consider moving this statement to an `else` block
95
+ "TRY401", # Redundant exception object included in `logging.exception` call
96
+ "UP008", # Use `super()` instead of `super(__class__, self)`
97
+ "UP031" # Use format specifiers instead of percent format
98
+ ]
99
+
100
+ # -------------------- default environment scripts ------------------
101
+ [tool.hatch.envs.default]
102
+ skip-install = true
103
+ dependencies = ["mypy", "ruff >=0.6.9", "requests-mock"]
104
+
105
+
106
+ [tool.hatch.envs.default.scripts]
107
+
108
+ # 'format' formats and fixes issues but does not complain
109
+ format = [
110
+ "ruff format",
111
+ "ruff check --fix-only",
112
+ ]
113
+
114
+ # 'format-python' just excludes Prettier
115
+ format-python = ["ruff format", "ruff check --fix-only"]
116
+
117
+ # 'check' only checks but never fixes
118
+ check = ["ruff check --no-fix .", "mypy --non-interactive --install-types -p wwpdb -p tests"]
119
+
120
+ # only checks with ruff (mypy has a lot of false positives)
121
+ check-ruff = "ruff check --no-fix . {args}"
122
+
123
+ # to complement 'check-ruff'
124
+ check-mypy = "mypy --non-interactive --install-types wwpdb tests {args}"
125
+
126
+ # only check security via Bandit; we require these rules to pass
127
+ check-security = "ruff check --select S --no-fix ."
128
+
129
+ # ----------------------- testing environment ----------------
130
+ [tool.hatch.envs.hatch-test]
131
+ dependencies = ["tox"]
132
+
133
+ [tool.hatch.envs.hatch-test.scripts]
134
+ run = ["tox"]
135
+
136
+
137
+ # ------------------------- Mypy disable ---------
138
+ [[tool.mypy.overrides]]
139
+ module = ["mmcif.*", "mmcif_utils.*", "wwpdb.utils.config.*"]
140
+ ignore_missing_imports = true