Git Product home page Git Product logo

ashokkumarta / dampy Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 5.0 22.21 MB

DamPy is a command line tool + Python library to work with Adobe Experience Manager (AEM) Assets (DAM). It provides a comprehensive API to perform all operations on assets and is intended to provide a full command line interface for working with AEM DAM.

Home Page: https://pypi.org/project/dampy/

License: MIT License

Python 99.83% Batchfile 0.17%
dam aem python python3 cli assets tool utility adobe experiance

dampy's People

Contributors

ashokkumarta avatar george-cm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dampy's Issues

Error due to 'special' characters while exporting to csv

all_assets = aem.dam.list('/content/dam',csv_file='C:/Data/list.csv',)


UnicodeEncodeError Traceback (most recent call last)
Cell In[10], line 1
----> 1 all_assets = aem.dam.list('/content/dam',csv_file='C:/Data/list.csv',)

File ~\AppData\Local\anaconda3\lib\site-packages\dampy\lib\Assets.py:47, in Assets.list(self, path, csv_dump, csv_file)
45 dir, fname = dir_n_file(csv_file, 'csv')
46 env = Env(dir)
---> 47 env.writeCSV(fname, list=asset_list)
48 return asset_list

File ~\AppData\Local\anaconda3\lib\site-packages\dampy\lib\Env.py:80, in Env.writeCSV(self, fname, list, data)
78 if list:
79 for v in list:
---> 80 wr.writerow([v])
81 elif data:
82 for v in data:

File ~\AppData\Local\anaconda3\lib\encodings\cp1252.py:19, in IncrementalEncoder.encode(self, input, final)
18 def encode(self, input, final=False):
---> 19 return codecs.charmap_encode(input,self.errors,encoding_table)[0]

UnicodeEncodeError: 'charmap' codec can't encode characters in position 66-69: character maps to

aem.dam.list function always returns an empty list

Using dampy on a cloud AEM instance.

>>> print(aem.dam.list("/content/dam/test"))
[]

This folder has several assets and folders in.

Edit: it seems to work for some folders and not others, with no apparent reason

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.