Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
public:lta_tricks [2023-04-24 08:19] – Robbie Luijben | public:lta_tricks [2023-07-17 08:51] (current) – Robbie Luijben | ||
---|---|---|---|
Line 375: | Line 375: | ||
===== Python Module for Staging ===== | ===== Python Module for Staging ===== | ||
- | The python interaction with the LTA catalog can be complemented with the use of a specific module developed to give users more control over their staging requests. | + | The python interaction with the LTA catalog can be complemented with the use of a specific module developed to give users more control over their staging requests. |
- | * Current | + | Current |
- | * Please see **" | + | |
- | | + | * Version 2.0 release can be found at: [[https:// |
- | * Released version 1.7 is to be used with the current (soon to be old) production environment. Please check out the version | + | |
- | * Please see **" | + | |
==== Version 2.0 usage notes ==== | ==== Version 2.0 usage notes ==== | ||
- | The module is made available [[https:// | + | The module is made available [[http:// |
__Notes:__ | __Notes:__ | ||
Line 400: | Line 398: | ||
* The requests library is a required dependency. If you care about Python2 compatability, | * The requests library is a required dependency. If you care about Python2 compatability, | ||
- | Also note that some functions are not supported in the new LTA stager. Upon use, they will display an error stating that the function is deprecated. Please look at the '' | + | Also note that some functions are not supported in the new LTA stager. The states that a request can be in have been simplified. As such, there is no need for these functions anymore. Upon use, they will display an error stating that the function is deprecated. Please look at the '' |
- | ==== Version 1.7 usage notes ==== | + | ==== Functionality |
- | + | ||
- | The module is made available **[[https:// | + | |
- | + | ||
- | **Alternatively to the .awe/ | + | |
- | < | + | |
- | + | ||
- | user=XXX | + | |
- | password=YYY | + | |
- | + | ||
- | </ | + | |
For a description of what the user can do, we list here the functions that are available. | For a description of what the user can do, we list here the functions that are available. | ||
Line 431: | Line 419: | ||
Below is an example of how to use this: | Below is an example of how to use this: | ||
- | + | < | |
- | < | + | > python |
Python 2.7.10 (default, Oct 23 2015, 19:19:21) | Python 2.7.10 (default, Oct 23 2015, 19:19:21) | ||
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin | [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin | ||
Line 441: | Line 429: | ||
+ 12227 | + 12227 | ||
- | - File count -> 100 | + | - File count |
- Files done -> 40 | - Files done -> 40 | ||
- Flagged abort -> false | - Flagged abort -> false |