opencloning 0.4.3__tar.gz → 0.4.4__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.
- {opencloning-0.4.3 → opencloning-0.4.4}/PKG-INFO +1 -1
- {opencloning-0.4.3 → opencloning-0.4.4}/pyproject.toml +1 -1
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/endpoints/other.py +20 -1
- {opencloning-0.4.3 → opencloning-0.4.4}/LICENSE +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/README.md +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/__init__.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/_version.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/api_config_utils.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/app_settings.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/EBIC/__init__.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/EBIC/barcode.gb +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/EBIC/common_plasmid.gb +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/EBIC/example.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/EBIC/primer_design_settings.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/__init__.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/index.html +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/__init__.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/index.html +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/pombe_clone.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/pombe_gather.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/pombe_get_primers.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/pombe_summary.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/ziqiang_et_al2024/__init__.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/ziqiang_et_al2024/index.html +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/ziqiang_et_al2024/ziqiang_et_al2024.json +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/bug_fixing/README.md +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/bug_fixing/__init__.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/bug_fixing/backend_v0_3.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/cre_lox.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/dna_functions.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/dna_utils.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/ebic/__init__.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/ebic/primer_design.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/ebic/primer_design_settings.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/endpoints/annotation.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/endpoints/assembly.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/endpoints/external_import.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/endpoints/no_assembly.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/endpoints/no_input.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/endpoints/primer_design.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/gateway.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/get_router.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/http_client.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/main.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/ncbi_requests.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/primer_design.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/pydantic_models.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/request_examples.py +0 -0
- {opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/utils.py +0 -0
|
@@ -8,7 +8,7 @@ authors = ["Manuel Lera-Ramirez <manulera14@gmail.com>"]
|
|
|
8
8
|
description = "Backend of OpenCloning, a web application to generate molecular cloning strategies in json format, and share them with others."
|
|
9
9
|
license = "MIT"
|
|
10
10
|
name = "opencloning"
|
|
11
|
-
version = "0.4.
|
|
11
|
+
version = "0.4.4"
|
|
12
12
|
package-mode = true
|
|
13
13
|
readme = "README.md"
|
|
14
14
|
repository = "https://github.com/manulera/OpenCloning_backend"
|
|
@@ -3,6 +3,7 @@ from Bio.Restriction.Restriction_Dictionary import rest_dict
|
|
|
3
3
|
from pydantic import ValidationError
|
|
4
4
|
from opencloning_linkml.migrations import migrate
|
|
5
5
|
from opencloning_linkml._version import __version__ as schema_version
|
|
6
|
+
import os
|
|
6
7
|
|
|
7
8
|
from ..bug_fixing.backend_v0_3 import fix_backend_v0_3
|
|
8
9
|
|
|
@@ -22,9 +23,27 @@ from .._version import __version__ as backend_version
|
|
|
22
23
|
router = get_router()
|
|
23
24
|
|
|
24
25
|
|
|
26
|
+
def version_to_int(version: str | None) -> int | None:
|
|
27
|
+
if version is None:
|
|
28
|
+
return None
|
|
29
|
+
try:
|
|
30
|
+
version = version.replace('v', '')
|
|
31
|
+
# Pad to 2 digits
|
|
32
|
+
int_vals = [val.zfill(2) for val in version.split('.')]
|
|
33
|
+
return int(''.join(int_vals))
|
|
34
|
+
except ValueError:
|
|
35
|
+
return None
|
|
36
|
+
|
|
37
|
+
|
|
25
38
|
@router.get('/version')
|
|
26
39
|
async def get_version():
|
|
27
|
-
|
|
40
|
+
opencloning_version = os.getenv('OPENCLONING_VERSION')
|
|
41
|
+
return {
|
|
42
|
+
'backend_version': backend_version,
|
|
43
|
+
'schema_version': schema_version,
|
|
44
|
+
'opencloning_version': opencloning_version,
|
|
45
|
+
'opencloning_version_int': version_to_int(opencloning_version),
|
|
46
|
+
}
|
|
28
47
|
|
|
29
48
|
|
|
30
49
|
@router.get('/restriction_enzyme_list', response_model=dict[str, list[str]])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/EBIC/common_plasmid.gb
RENAMED
|
File without changes
|
|
File without changes
|
{opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/EBIC/primer_design_settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/pombe_get_primers.py
RENAMED
|
File without changes
|
{opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/pombe/pombe_summary.py
RENAMED
|
File without changes
|
{opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/ziqiang_et_al2024/__init__.py
RENAMED
|
File without changes
|
{opencloning-0.4.3 → opencloning-0.4.4}/src/opencloning/batch_cloning/ziqiang_et_al2024/index.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|