Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Vahid
@pylover
We are seeing the koran tv serials here, my gf loves that
At all, you are not so strange for us. must of our cultures are the same
loup
@YukSeungChan
oh really? haha I'm from korea.
Vahid
@pylover
yes, believe me
loup
@YukSeungChan
I was interested sqlalchemy-media in seeing the phrase that is "The main idea comes from dahlia's SQLAlchemy-ImageAttach." Cuz, Dahlia is my mentor in the past.
Vahid
@pylover
Wow, interesting
Most loved korean tv movie in iran is: 주몽
jomoong
Yes the dahlias project is awesome. i used it in one project,
loup
@YukSeungChan
I saw that. It was popular in Korea too.
Vahid
@pylover
but because of creating another table, and additional relationship, it's performing bad on production
So, i started to rewriting it with middlewares: (Analysers, filters) and awesome sqlalchemy mutable's
loup
@YukSeungChan
Does it mean sqlalchemy-media ?
Vahid
@pylover
Another difference is, lazy/deferred store factory, which helps to reduce the memory footprints
media comes from the media, attaching media to sqlalchemy model
I assumed every stream on the web is a media
of-cource local hard-drive also
the next phase of the project is to deal with videos and their complexities
Dahlia is a perfect guy, he is so clever
This is just continuing of their works
loup
@YukSeungChan
wow awesome.
I'm going to keep going contiribution.
Vahid
@pylover
thanks bro
Vahid
@pylover
@YukSeungChan , I just added you to collaborators,
Please Note: Test-driven-programming, 100% coverage and PEP8.
To release: just tag your commit and push tags:
git commit -m "Feature 1, Closes #34"
git tag v0.9.7
git push origin master --tags
Take care about documentation also, use
versionadded::

versionchanged::
loup
@YukSeungChan
oh.. okay Thx.
loup
@YukSeungChan
@pylover I committed a tag of v0.9.6. I wonder if I did well...
Vahid
@pylover
lol, it's ok, nice
checkout the travis build history: https://travis-ci.org/pylover/sqlalchemy-media/builds
Your release is distributes
loup
@YukSeungChan
Good. Thx!
Vahid
@pylover
just install it by pip and check is working after install
loup
@YukSeungChan
I did upgrade sqlalchemy-media in my personal project. After i ran tests. It works well.
Vahid
@pylover
That's it
so wait for issue, lol
thanks to travis, coveralls, and pypi
loup
@YukSeungChan
Haha, I have used sqlalchemy-media with flask. Flask default file of form was FileStorage of werkzeug.
I expected to select CgiFieldStorageDescriptor in AttachableDescriptor. But It just select StreamDescriptor. So i have problem that descriptor didn't get original_filename.

Now, I just use like below code.

class Image(BaseImage):
     @classmethod
     def create_from_file_storage(cls, file_storage: FileStorage, **kwargs):
        assert isinstance(file_storage, FileStorage)

        instance = cls()
        kwargs['original_filename'] = file_storage.filename
        return instance.attach(file_storage, **kwargs)

I don't know if sqlalchemy-media should support flask.

Vahid
@pylover
The original filename is not mandatory, and it's sent via multipart header
Vahid
@pylover
Please add chang log also
loup
@YukSeungChan

Hello @pylover, It's been a while.

Are there any plan for version update ?

Vahid
@pylover
Hi, @YukSeungChan . Yes, agree with you
Thanks for OS2 store. you are awesome
Vahid
@pylover
Ther version 0.10.1 is up
loup
@YukSeungChan
Thanks :D
Meyti
@meyt
Hi, @pylover, We have an application with filesystem-store, is it possible to migrate another one? i think yes, but it's hard! why?! stores not desgined for handle all exceptions, refered to #78, i handle FileNotFoundError in my project but when changing store to ssh or s3 ... this exception are useless and must i write exception for every single stores!