-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d128f2
commit f2904bb
Showing
10 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
import requests | ||
from requests_oauthlib import OAuth2Session | ||
""" | ||
""" | ||
__author__ = 'Neil Massey and Jack Leland' | ||
__date__ = '29 Jan 2024' | ||
__copyright__ = 'Copyright 2021 United Kingdom Research and Innovation' | ||
__license__ = 'BSD - see LICENSE file in top-level package directory' | ||
__contact__ = '[email protected]' | ||
|
||
import json | ||
import os.path | ||
import getpass | ||
|
||
import requests | ||
from requests_oauthlib import OAuth2Session | ||
|
||
from nlds_client.clientlib.exceptions import * | ||
|
||
def get_username_password(config): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
""" | ||
""" | ||
__author__ = 'Neil Massey and Jack Leland' | ||
__date__ = '29 Jan 2024' | ||
__copyright__ = 'Copyright 2021 United Kingdom Research and Innovation' | ||
__license__ = 'BSD - see LICENSE file in top-level package directory' | ||
__contact__ = '[email protected]' | ||
|
||
import json | ||
import os.path | ||
|
||
from click import option | ||
|
||
from nlds_client.clientlib.nlds_client_setup import get_config_file_location | ||
from nlds_client.clientlib.exceptions import ConfigError | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
"""Custom exceptions""" | ||
""" | ||
Custom exceptions | ||
""" | ||
__author__ = 'Neil Massey and Jack Leland' | ||
__date__ = '29 Jan 2024' | ||
__copyright__ = 'Copyright 2021 United Kingdom Research and Innovation' | ||
__license__ = 'BSD - see LICENSE file in top-level package directory' | ||
__contact__ = '[email protected]' | ||
|
||
|
||
class ConnectionError(Exception): | ||
pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
""" | ||
""" | ||
__author__ = 'Neil Massey and Jack Leland' | ||
__date__ = '29 Jan 2024' | ||
__copyright__ = 'Copyright 2021 United Kingdom Research and Innovation' | ||
__license__ = 'BSD - see LICENSE file in top-level package directory' | ||
__contact__ = '[email protected]' | ||
|
||
import os | ||
|
||
def get_config_file_location(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
""" | ||
""" | ||
__author__ = 'Neil Massey and Jack Leland' | ||
__date__ = '29 Jan 2024' | ||
__copyright__ = 'Copyright 2021 United Kingdom Research and Innovation' | ||
__license__ = 'BSD - see LICENSE file in top-level package directory' | ||
__contact__ = '[email protected]' | ||
|
||
import json | ||
import uuid | ||
import urllib.parse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
#! /usr/bin/env python | ||
import click | ||
""" | ||
""" | ||
__author__ = 'Neil Massey and Jack Leland' | ||
__date__ = '29 Jan 2024' | ||
__copyright__ = 'Copyright 2024 United Kingdom Research and Innovation' | ||
__license__ = 'BSD - see LICENSE file in top-level package directory' | ||
__contact__ = '[email protected]' | ||
|
||
from json import dumps as json_dumps | ||
|
||
import click | ||
|
||
from nlds_client.clientlib.transactions import (get_filelist, put_filelist, | ||
list_holding, find_file, | ||
monitor_transactions, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters