pydna 5.5.4__py3-none-any.whl → 5.5.5__py3-none-any.whl
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.
- pydna/__init__.py +24 -193
- pydna/_pretty.py +8 -8
- pydna/_thermodynamic_data.py +3 -3
- pydna/alphabet.py +995 -0
- pydna/amplicon.py +19 -24
- pydna/amplify.py +75 -95
- pydna/assembly.py +64 -81
- pydna/assembly2.py +283 -294
- pydna/codon.py +4 -4
- pydna/common_sub_strings.py +6 -8
- pydna/contig.py +203 -10
- pydna/design.py +176 -60
- pydna/download.py +6 -15
- pydna/dseq.py +1794 -718
- pydna/dseqrecord.py +170 -169
- pydna/gateway.py +6 -6
- pydna/gel.py +5 -5
- pydna/genbank.py +43 -46
- pydna/genbankfixer.py +89 -92
- pydna/ladders.py +11 -12
- pydna/oligonucleotide_hybridization.py +124 -0
- pydna/opencloning_models.py +187 -60
- pydna/parsers.py +45 -32
- pydna/primer.py +4 -4
- pydna/primer_screen.py +833 -0
- pydna/readers.py +14 -9
- pydna/seq.py +137 -47
- pydna/seqrecord.py +54 -62
- pydna/sequence_picker.py +2 -5
- pydna/sequence_regex.py +6 -6
- pydna/tm.py +17 -17
- pydna/types.py +19 -19
- pydna/utils.py +97 -75
- {pydna-5.5.4.dist-info → pydna-5.5.5.dist-info}/METADATA +8 -8
- pydna-5.5.5.dist-info/RECORD +43 -0
- {pydna-5.5.4.dist-info → pydna-5.5.5.dist-info}/WHEEL +1 -1
- pydna/conftest.py +0 -42
- pydna/genbankfile.py +0 -42
- pydna/genbankrecord.py +0 -168
- pydna/goldengate.py +0 -45
- pydna/ligate.py +0 -62
- pydna/user_cloning.py +0 -29
- pydna-5.5.4.dist-info/RECORD +0 -46
- {pydna-5.5.4.dist-info → pydna-5.5.5.dist-info}/licenses/LICENSE.txt +0 -0
pydna/download.py
CHANGED
|
@@ -6,27 +6,18 @@
|
|
|
6
6
|
# as part of this package.
|
|
7
7
|
"""Provides a function for downloading online text files."""
|
|
8
8
|
|
|
9
|
-
import textwrap
|
|
9
|
+
import textwrap
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
from pydna._pretty import pretty_str as _pretty_str
|
|
11
|
+
from pydna._pretty import pretty_str as ps
|
|
13
12
|
|
|
14
|
-
# from pydna.utils import memorize as _memorize
|
|
15
|
-
# import logging as _logging
|
|
16
13
|
|
|
17
|
-
# _module_logger = _logging.getLogger("pydna." + __name__)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# @_memorize("pydna.download.download_text")
|
|
21
14
|
def download_text(url):
|
|
22
15
|
"""docstring."""
|
|
23
16
|
import requests
|
|
24
17
|
|
|
25
|
-
# _module_logger.info("#### DOWNLOAD TEXT ####")
|
|
26
|
-
# _module_logger.info("url = %s", url)
|
|
27
18
|
req = requests.get(url)
|
|
28
|
-
|
|
29
|
-
result =
|
|
19
|
+
|
|
20
|
+
result = textwrap.dedent(req.text).strip()
|
|
30
21
|
result = result.replace("\r\n", "\n").replace("\r", "\n")
|
|
31
|
-
|
|
32
|
-
return
|
|
22
|
+
|
|
23
|
+
return ps(result)
|