pitchmuc / launchpy Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for the Adobe Launch API
License: GNU General Public License v3.0
Python wrapper for the Adobe Launch API
License: GNU General Public License v3.0
Hi Team, I have tried to create the launch publishing flow using Launch API, but getting an error with setting environments. Below is the sample error, can you please let me know how to proceed with this error:
---------------------------------------------------------------------------
SystemExit Traceback (most recent call last)
<ipython-input-70-b898e98e09e2> in <module>
----> 1 testLibrary.build()
~\Anaconda3\lib\site-packages\launchpy\launchpy.py in build(self)
1984 status = self._setEnvironment(obj)
1985 if 'error' in status.keys():
-> 1986 raise SystemExit('Issue setting environment')
1987 build = self.connector.postData(self._Builds)
1988 build_json = build.json()
SystemExit: Issue setting environment
Hi Julien,
I've noted, that this project is not on PyPi, yet.
If you need help I scribbled down something on my blog.
Hi @pitchmuc,
I would like to thankyou for your effort building and managing this module. This is super helpful.
I am looking to copy settings of data element and rule from one property to another.
The Synchronizer class is not useful as the previous versions will be overridden.
I am using Translator class instead. However, when I run the attached code, I don't see any errors. But the data element is not getting copied.
Can you please let me know if I am missing something here?
Also, is there a functionality to copy settings of an extension from one Property to another within the same Organization?
Thanks,
Abhi.
Hi Julien,
have you thought about turning your README into an awesome one?
Hi Julien,
since you are writing a library, you should add version hints on your requirements.txt. You can use pip freeze
for that.
This way, you can utilise tools to check for breaking changes caused by your dependencies.
Plus, it makes debugging easier, since you can more or less be sure to run the same version than the person opening an issue.
Hi Julien,
in the presentation you gave today, you have highlighted, that you are documenting your code.
That's great!
Have you considered pushing it to readthedocs.io?
First off all: thanks for the wonderfull work on this module. It helps me a lot getting information on our setup much quicker.
But now I'm trying to update a data elements settings and keep failing.
I want to update the settings of a data element by extending a list inside of it.
What I try:
lookup_de
) from the list returned by my_property.getDataElements()
lookup_de_attr = lp.extractAttributes(lookup_de)
result = my_property.updateDataElements(lookup_de['id'], lookup_de_attr)
But I keep getting an error as result:
{'id': 'b73fac27-d04a-46ee-9763-7b4a366c0fb1', 'status': '400', 'code': 'schema-validation-error', 'title': 'Schema Validation Error', 'detail': 'The request did not contain the following required properties: data', 'meta': {}, 'source': {}}
Any idea what I'm doing wrong?
Launchpi version ==0.3.3
Requests version ==2.25.1
Hi Julien,
do you have unit tests?
I couldn't find any. Would you prefer pytest and/or tox?
Which version do you cover with your library?
Python 3.6 will receive (security) updates until 2021 and Python 3.7 until 2023.
My distribution doesn't offer Python 3.7 for example.
Hi Julien,
what is your opinion on using a CI-as-a-Service?
For example Circle CI or Travis?
You could use them to ease some jobs on PRs by utilising the Commit Status API.
For example I have setup some of those over at my pet project webmention-tools.
I'd be willing to assist you here :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.