Coder Social home page Coder Social logo

certificator's People

Contributors

jecs89 avatar lamenezes avatar vccolombo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

certificator's Issues

Allow to generate csv using the command line

Currently it's only possible to use the certificator command to generate certificate for meetup events. It would be nice to have something as:

$ certificator --meta my_meta.json --data my_data.csv --template_path ./my_template.html

Refactor some Certificator methods to property

There are some methods called get_foo(). They don't receive any arguments (except for self) and could be a property. Also some of these values won't change so could be a cached_property, e.g:

class BaseCertificator:
    def  get_meta(self):
        ... 

could be:

class BaseCertificator:
    @property
    def meta(self):
        ...

WeasyPrint: "There are known rendering problems and missing features with cairo < 1.15.4" error

WeasyPrint has been fully released since the last commit to master. Now, it requires an updated version of Cairo, which is not available by just apt upgrading in Ubuntu 16. Also, it requires installing libcairo2-dev package, and I think this might be an unnecessary burden to users

My suggestion would be to update requirements.txt to make WeasyPrint install the version we used before

weasyprint==0.42.3

Do you think using an outdate version of it would be bad?

Thanks!

Cache generated certificates for future use

It would be good to the API user have access to the generated certificates (html). This can be done by having a private attribute on BaseCertificator or returning the list to the generate method.

I don't know which approach is better, but those seems good enough for now.

Get certificate metadata from dict instead of json

Currently metadata about the event (such as title, venue etc.) are read from a json file. It would be nice if it was possible to also be able to pass it as a python dict:

meta = {'title': 'my event', 'venue': "mother's joana house"}
certificator = CSVCertificator(meta=meta)  # uses meta instead of the content of meta.json file
certificator.generate()

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.