You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,17 @@ The selection string is often generated by another front-end library, for exampl
22
22
Before you can use this library you'll need:
23
23
24
24
- An environment based on python 3.6 or later
25
-
- A `ServiceX` end-point. For example, `http://localhost:5000/servicex`, if `ServiceX` is running on a local `k8` cluster and the proper ports are open, or the public servicex instance (contact IRIS-HEP at xxx if you are part of the LHC to request an account, or with help setting up an instance).
25
+
- A `ServiceX` end-point. This is usually gotten by logging into and getting approved at the servicex endpoint. Once you do that, you'll have an API token, which this library needs to access the `ServiceX` endpoint, and the web address where you got that token (the `endpoint` address).
26
26
27
27
### How to access your endpoint
28
28
29
-
The `servicex` library searches for configuration information in several locations to determine what end-point it should connect to, in the following order:
29
+
The API access information is normally placed in a `.servicex` file (to keep this confidential information form accidentally getting checked into a public repository). The `servicex` library searches for configuration information in several locations to determine what end-point it should connect to, in the following order:
30
30
31
31
1. A `.servicex` file in the current working directory
32
32
1. A `.servicex` file in the user's home directory (`$HOME` on Linux and Mac, and your profile
33
33
directory on Windows).
34
34
1. The `config_defaults.yaml` file distributed with the `servicex` package.
35
35
36
-
If no endpoint is specified, then the library defaults to the developer endpoint, which is `http://localhost:5000` for the web-service API, and `localhost:9000` for the `minio` endpoint. No passwords are required.
37
-
38
36
Create a `.servicex` file, in the `yaml` format, in the appropriate place for your work that contains the following:
39
37
40
38
```yaml
@@ -56,7 +54,7 @@ Finally, you can create the objects `ServiceXAdaptor` and `MinioAdaptor` by hand
56
54
The following lines will return a `pandas.DataFrame` containing all the jet pT's from an ATLAS xAOD file containing Z->ee Monte Carlo:
When doing backend development, often ports 9000 and 5000 are forwarded to the local machine exposing the `minio` and `ServiceX_App` instances. In that case, you'll need to create a `.servicex` file that has `http://localhost:5000` as the end point. No API token is necessary if the development `ServiceX` instance doesn't have authorization turned on.
142
+
141
143
## API
142
144
143
145
Everything is based around the `ServiceXDataset` object. Below is the documentation for the most common parameters.
0 commit comments