Skip to main content

i am using pycelonis in jupyter notebook to get list of spaces, list of packages and its analysis. I am able to get list of spaces, but list of packages is not possible, also space.packages.find is not pulling one of my package key.

 

If i can get the documentation to find list of packages and analysis that will help.

 

Thanks

Muthappan

Hello,

 

Below is sample code to get packages and analyses.

 

import pycelonis

celonis = pycelonis.get_celonis() # change argments of get_celonis depending on your environment

packages = 😛 for s in celonis.spaces for p in s.packages] # list of package

analyses = =a for s in celonis.spaces for p in s.packages for a in p.analyses] # list of analysis


Hi Kazuhiko,

 

i am getting empty list " ] " for packages for the below code.

 

packages = 😛 for s in celonis.spaces for p in s.packages] # list of package

packages

 

I am getting values for spaces for the below code, but no luck for packages

 

space = celonis.spaces

space

 

 

Thanks

Muthu


Could you check permission of space ? "EDIT ALL PACKAGES" permission is required for pycelonis to retrieve package.


Here are the list of permissions i have for the jupyter workbenchAll permission list for Jupyter workbench


You can click three dots in your space then click Permissions menu, then you can select "EDIT ALL PACKAGES" permission to your User or Application.

If you use Default space, it is like below.

 

permission 

 


That Works, so i have to provide permissions for each spaces and each package if we have multiple spaces and multiple packages. That will be too much maintenance. Anyway thank you Kazuhiko for detailed explanations.


It is nice to hear that.

 

In my case, package level permission is not required when using Admin role.


How do you use admin role in jupyter workbench, do you use key?

 


Go to Edit Profile in right upper avatar, then Create API key. That key is same role as your login user account.


Reply