Skip to content

Instantly share code, notes, and snippets.

View dmitry-mukhin's full-sized avatar
🎯
Focusing

Dmitry Mukhin dmitry-mukhin

🎯
Focusing
View GitHub Profile
# coding: utf-8
# Есть такой код. Сделайте что-нибудь с Item.get_options().
from django.db import models
class Item(models.Model):
# .....
def get_options(self):
@dmitry-mukhin
dmitry-mukhin / list_cvs.py
Created August 31, 2022 12:05
Get all Uploadcare files in CVS
### Get all files stored in your Uploadcare project in CSV.
import pyuploadcare
import csv
from pyuploadcare import Uploadcare
uploadcare = Uploadcare(public_key='public',
secret_key='secret')
l10n.translations.en = {
logout: 'Log out',
error: {
a: 'Something went wrong. Please',
b: 'reload',
c: 'Here some technical details:'
},
sourceName: {
gdrive: 'Google Drive',
dropbox: 'Dropbox',