ads.services.export¶
The ADS export document service.
Functions
|
Return a citation string in AASTeX format. |
|
Return a citation string in ADS (generic tagged) format |
|
Return a citation string in BibTeX format. |
|
Return a citation string in BibTeX + abstract format. |
|
Return a citation string in a custom style and format. |
|
Return a citation string in a custom format. |
|
Return a citation string in Dublin Core (DC) XML format. |
|
Return a citation string in EndNote format. |
|
Return a citation string in Icarus format. |
|
Return a citation string in IEEE export (Unicode-encoded). |
|
Return a citation string in MEDLARS format. |
|
Return a citation string in Monthly Notices of the Royal Astronomical Society format. |
|
Return a citation string in ProCite format. |
|
Return a citation string in REFABS-XML format. |
|
Return a citation string in RefWorks format. |
|
Return a citation string in REF-XML format. |
|
Return a citation string in RIS (Refman) format. |
|
Return a citation string in Solar Physics (SoPh) format. |
|
Return a citation string in VOTables format. |
- ads.services.export.ads(*iterable, sort=None) str [source]¶
Return a citation string in ADS (generic tagged) format
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.bibtex(*iterable, max_author=10, author_cutoff=200, key_format=None, journal_format=1, sort=None) str [source]¶
Return a citation string in BibTeX format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.max_author – [optional] The maximum number of authors displayed. The default value for {obj}`ads.services.export.bibtex` and {obj}`ads.services.export.bibtexabs` are different, because the defaults for each end point are different.
key_format –
[optional] Customize bibtex for reference keys using some combination of authors’ last name(s), publication year, journal, and bibcode. The user can pick the key generation algorithm by specifying a custom format for it.
For example:
The user can specify
%zm
to enumerate keys (one character alphabet) if duplicate keys get created. Note that if enumeration specifer is not included, then the export service does not enumerate the keys, even if duplicate keys are found.journal_format –
[optional] An integer flag to decide on the format of the journal name:
1 indicates to use AASTeX macros if there are any (default), otherwise full journal name is exported.
2 indicates to use journal abbreviations,
3 indicates to use full journal name.
sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.bibtexabs(*iterable, max_author=0, author_cutoff=200, key_format=None, journal_format=1, sort=None) str [source]¶
Return a citation string in BibTeX + abstract format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.max_author – [optional] The maximum number of authors displayed. The default value for {obj}`ads.services.export.bibtex` and {obj}`ads.services.export.bibtexabs` are different, because the defaults for each end point are different.
key_format –
[optional] Customize bibtex for reference keys using some combination of authors’ last name(s), publication year, journal, and bibcode. The user can pick the key generation algorithm by specifying a custom format for it.
Accomazzi:2019 – %1H:%Y Accomazzi:2019:AAS – %1H:%Y:%q Accomazzi2019 – %1H%Y Accomazzi2019AAS – %1H%Y%q AccomazziKurtz2019 – %2H%Y
The user can specify
%zm
to enumerate keys (one character alphabet) if duplicate keys get created. Note that if enumeration specifer is not included, then the export service does not enumerate the keys, even if duplicate keys are found.journal_format –
[optional] An integer flag to decide on the format of the journal name:
1 indicates to use AASTeX macros if there are any (default), otherwise full journal name is exported.
2 indicates to use journal abbreviations,
3 indicates to use full journal name.
sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.endnote(*iterable, sort=None) str [source]¶
Return a citation string in EndNote format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.medlars(*iterable, sort=None) str [source]¶
Return a citation string in MEDLARS format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.procite(*iterable, sort=None) str [source]¶
Return a citation string in ProCite format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.refworks(*iterable, sort=None) str [source]¶
Return a citation string in RefWorks format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.ris(*iterable, sort=None) str [source]¶
Return a citation string in RIS (Refman) format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.aastex(*iterable, journal_format=1, sort=None) str [source]¶
Return a citation string in AASTeX format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.journal_format –
[optional] An integer flag to decide on the format of the journal name:
1 indicates to use AASTeX macros if there are any (default), otherwise full journal name is exported.
2 indicates to use journal abbreviations,
3 indicates to use full journal name.
sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.icarus(*iterable, sort=None) str [source]¶
Return a citation string in Icarus format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.mnras(*iterable, sort=None) str [source]¶
Return a citation string in Monthly Notices of the Royal Astronomical Society format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.soph(*iterable, sort=None) str [source]¶
Return a citation string in Solar Physics (SoPh) format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.dcxml(*iterable, sort=None) str [source]¶
Return a citation string in Dublin Core (DC) XML format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.refxml(*iterable, sort=None) str [source]¶
Return a citation string in REF-XML format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.refabsxml(*iterable, sort=None) str [source]¶
Return a citation string in REFABS-XML format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.votable(*iterable, sort=None) str [source]¶
Return a citation string in VOTables format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.csl(*iterable, style, format, sort=None, journal_format=None) str [source]¶
Return a citation string in a custom style and format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.style –
The name of the style to use. This can be one of:
aastex
icarus
mnras
soph
aspc
apsj
aasj
ieee
format –
An integer representing the format to use. This can be one of:
1
for Unicode2
for HTML3
for LaTeX
journal_format –
[optional] An integer flag to decide on the format of the journal name:
1
indicates to use AASTeX macros if there are any (default), otherwise full journal name is exported.2
indicates to use journal abbreviations,3
indicates to use full journal name.
This keyword is only used when one of the following
style``s is used: ``aastex
,aspc
, andaasj
.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().
- ads.services.export.custom(*iterable, format) str [source]¶
Return a citation string in a custom format.
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.format – A custom citation format. For example: “%ZEncoding:latexbibitem[] %l %T (%Y) %q, %V, %p-%P.”
- ads.services.export.ieee(*iterable, sort=None) str [source]¶
Return a citation string in IEEE export (Unicode-encoded).
- Parameters
iterable – An iterable that contains:
ads.Document
objects,ads.Library
objects, or strings of bibcodes.sort – [optional] The sorting to apply to the results. This can be
None
(no sort), a string like “citation_count desc”), or something like ads.Document.pubdate.desc().