Re: django-amp-tools project improvement

2021-04-11 Thread Pratham Jangra
Can I propose to make an official Django  library for AMP?

On Thu, Apr 8, 2021, 16:25 'Adam Johnson' via Django developers
(Contributions to Django itself)  wrote:

> Hi Pratham,
>
> Sorry to be a bit of a downer here...
>
> The django-amp-tools project is not an official django project and has not
> been updated for a while (it doesn't support *any* currently supported
> Django versions). It's also not particularly popular - 65 stars - and in
> general I feel like AMP is in decline. Better CDN's and HTTP/2+3 allow for
> faster delivery of vanilla HTML. So I'm not sure we could support a project
> contributing to django-amp-tools. That said I'm prepared to be proven
> wrong, I know big news sites tend to still support AMP so there's probably
> some value there.
>
> Did you check out the wiki page on GSoC and its suggested projects?
> https://code.djangoproject.com/wiki/SummerOfCode2021
>
> Thanks,
>
> Adam
>
>
> On Wed, 7 Apr 2021 at 23:15, Pratham Jangra  wrote:
>
>> Hello developers
>>
>> This is Pratham Jangra, a Computer Science & Engineering undergrad
>> sophomore.
>>
>> For GSoC 2021, I am making a proposal to solve some problems in the
>> django-amp-tools project. The most important one is to create a library
>> for auto-parsing HTML tags.
>>
>>
>>
>> Importance: As we all know AMP is used by a massive amount of websites
>> for webpages to load faster and get pages optimized for mobile browsing.
>> Nowadays AMP is heavily used for user-first websites, stories, ads, emails.
>> It is widely used for SEO in websites as Google prefers it and gives the
>> website a higher ranking.
>>
>>
>>
>> Problems/Ideas: AMP uses equivalent HTML tags to optimize a particular
>> webpage. But there are still some issues yet to be resolved as follows:
>>
>>-
>>
>>AMP is based on components
>>-
>>
>>   Not all tags have equivalent representation in HTML which is a big
>>   issue because day by day content is increasing on AMP pages and we will
>>   eventually need those tags to render the pages. This is the problem I 
>> have
>>   faced personally while using AMP boilerplate for a website. There is no
>>   amplify tag equivalent.
>>   -
>>
>>   Translation is still a big issue for AMP.  Currently all HTML
>>   cannot be translated.
>>   -
>>
>>   Automatic parsing: If there is a way to automatically parse all
>>   tags of HTML then most of the issues of equivalent representation in 
>> AMP
>>   will be solved. for e.g. . All we would need to do is create a 
>> library
>>   to automatically create an AMP-equivalent page of the existing HTML 
>> page.
>>   -
>>
>>   Need for stabilize the parsing.
>>
>> I did my research as much as possible but still some issues are there and
>> we can create a new library for auto-parsing the tags in normal HTML. My
>> proposal is still in work and I would really appreciate feedback and
>> suggestions on these issues. Please advise me to implement any other
>> features and if there is anything wrong in the whole idea. I am open to any
>> new ideas; and please correct me if I have missed anything in the whole
>> idea. Thank you.
>>
>>
>>
>> Regards
>>
>> Pratham Jangra
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/fa290e47-6ee9-4136-9a72-368fdc2da9ddn%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Adam
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CAMyDDM03rumC8nYN4T8F8XDqjdBy_MQd7uq8SFV4UA%2BoJ%3Dp20g%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMR_Vs1tdAUOCEiJccGOhHSrOp%3D5K9VOTQ9Er5Um-Q9EJ0a6Mw%40mail.gmail.com.


Re: django-amp-tools project improvement

2021-04-11 Thread Carlton Gibson
This might be OK as a third-party package but I don't think it would be 
something we'd include in Django itself.
Nor I think would we accept it as a GSoC project. 

Sorry. 

Kind Regards,

Carlton


On Monday, 12 April 2021 at 08:19:10 UTC+2 parth...@gmail.com wrote:

> Can I propose to make an official Django  library for AMP?
>
> On Thu, Apr 8, 2021, 16:25 'Adam Johnson' via Django developers 
> (Contributions to Django itself)  wrote:
>
>> Hi Pratham,
>>
>> Sorry to be a bit of a downer here...
>>
>> The django-amp-tools project is not an official django project and has 
>> not been updated for a while (it doesn't support *any* currently supported 
>> Django versions). It's also not particularly popular - 65 stars - and in 
>> general I feel like AMP is in decline. Better CDN's and HTTP/2+3 allow for 
>> faster delivery of vanilla HTML. So I'm not sure we could support a project 
>> contributing to django-amp-tools. That said I'm prepared to be proven 
>> wrong, I know big news sites tend to still support AMP so there's probably 
>> some value there.
>>
>> Did you check out the wiki page on GSoC and its suggested projects? 
>> https://code.djangoproject.com/wiki/SummerOfCode2021
>>
>> Thanks,
>>
>> Adam
>>
>>
>> On Wed, 7 Apr 2021 at 23:15, Pratham Jangra  wrote:
>>
>>> Hello developers
>>>
>>> This is Pratham Jangra, a Computer Science & Engineering undergrad 
>>> sophomore.
>>>
>>> For GSoC 2021, I am making a proposal to solve some problems in the 
>>> django-amp-tools project. The most important one is to create a library 
>>> for auto-parsing HTML tags.
>>>
>>>  
>>>
>>> Importance: As we all know AMP is used by a massive amount of websites 
>>> for webpages to load faster and get pages optimized for mobile browsing. 
>>> Nowadays AMP is heavily used for user-first websites, stories, ads, emails. 
>>> It is widely used for SEO in websites as Google prefers it and gives the 
>>> website a higher ranking.
>>>
>>>  
>>>
>>> Problems/Ideas: AMP uses equivalent HTML tags to optimize a particular 
>>> webpage. But there are still some issues yet to be resolved as follows:
>>>
>>>- 
>>>
>>>AMP is based on components
>>>- 
>>>   
>>>   Not all tags have equivalent representation in HTML which is a 
>>>   big issue because day by day content is increasing on AMP pages and 
>>> we will 
>>>   eventually need those tags to render the pages. This is the problem I 
>>> have 
>>>   faced personally while using AMP boilerplate for a website. There is 
>>> no 
>>>   amplify tag equivalent.
>>>   - 
>>>   
>>>   Translation is still a big issue for AMP.  Currently all HTML 
>>>   cannot be translated.
>>>   - 
>>>   
>>>   Automatic parsing: If there is a way to automatically parse all 
>>>   tags of HTML then most of the issues of equivalent representation in 
>>> AMP 
>>>   will be solved. for e.g. . All we would need to do is create a 
>>> library 
>>>   to automatically create an AMP-equivalent page of the existing HTML 
>>> page.
>>>   - 
>>>   
>>>   Need for stabilize the parsing.
>>>   
>>> I did my research as much as possible but still some issues are there 
>>> and we can create a new library for auto-parsing the tags in normal HTML. 
>>> My proposal is still in work and I would really appreciate feedback and 
>>> suggestions on these issues. Please advise me to implement any other 
>>> features and if there is anything wrong in the whole idea. I am open to any 
>>> new ideas; and please correct me if I have missed anything in the whole 
>>> idea. Thank you.
>>>
>>>  
>>>
>>> Regards
>>>
>>> Pratham Jangra
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django developers (Contributions to Django itself)" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-develop...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-developers/fa290e47-6ee9-4136-9a72-368fdc2da9ddn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> Adam
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-develop...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/CAMyDDM03rumC8nYN4T8F8XDqjdBy_MQd7uq8SFV4UA%2BoJ%3Dp20g%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Go

Re: GSoc proposal : A django pdfs library.

2021-04-11 Thread Anuttam Anand
Hey ,
Can anyone please let me know if I have to include other things for my
final proposal or should I submit ?
Thanks.

On Thu, 8 Apr, 2021, 8:58 am Anuttam Anand,  wrote:

> Hey Carton ,
> I have made my final proposal , please let me know for any additional
> points or advice.
> Google Docs Link :
> https://docs.google.com/document/d/1HPi0hI3BlVRuUiq2JPxKxm_jnGwjfqhCczWaDHUWhSE/edit?usp=sharing
>
> On Tuesday, April 6, 2021 at 10:16:26 PM UTC+5:30 Anuttam Anand wrote:
>
>> Hey Carlton,
>>
>> Thanks for responding . This is my first open source project and I'm
>> pretty scared . But my view is to add features for a django pdf library ,
>> features which other frameworks have and are not in current scope like in
>> ReportLab.
>> After doing some research , I have found some python based APIs and
>> existing libraries , not very refined but possible to use with django.
>> Since they require a lot of dependencies, making a whole package of the
>> thing will be more efficient for the user. I hope you and all others can
>> give me more advice and if you people know anymore libraries or similar
>> packages. P.S if you guys have any more features which you think a pdf
>> conversion package should have , I would be glad to hear them.
>> Again thanks
>>
>> - Anuttam Anand
>>
>> On Tuesday, April 6, 2021 at 7:16:22 PM UTC+5:30 carlton...@gmail.com
>> wrote:
>>
>>> Hi Anuttam.
>>>
>>> I’d guess that a PDF library itself would be out of scope for Django
>>> itself — but this is a perennial problem.
>>>
>>> **Quite maybe** a project to modernise the Outputting PDFs with Django
>>> docs would be in scope... 🤔
>>>
>>> https://docs.djangoproject.com/en/3.1/howto/outputting-pdf/
>>>
>>> Questions that you could cover:
>>> What is the best way to do it these days? What dependencies does that
>>> involve?
>>> Are there helpers we could add to Django? (And so on.)
>>>
>>> An awesome proposal there might swing it. (I can’t say definitely.)
>>> (Even if it didn’t make GSoC, such a proposal would convert well into a
>>> profile blog piece, so if you’re keen it might be worth the punt.)
>>>
>>> I hope that helps.
>>>
>>> Kind regards, Carlton
>>>
>>> On Mon, 5 Apr 2021 at 15:58, Anuttam Anand  wrote:
>>>
 Hello to all my djangomates. I am Anuttam Anand, Btech student from
 India. For this year's GSoc , I am thinking of making a proposal for a more
 efficient and feature containing pdf library. Upon researching , I found
 ReportLab to be the pdf making library in django but it lacks many features
 and has been reported to be buggy.
 Features which I am thinking of including:
 1. A direct webpage conversion to pdf and containing atleast 80% of css.
 2. An option to download or keep the pdf in the server itself ,
 location parameter which is specified by the programmer.
 3. An option to download the pdf to the user's device upon calling the
 function.
 Motivation:
 1. The main motivation behind this project is that many websites need
 pdfs like transaction receipts or some reports which are downloaded.
 2. I personally faced this issue a while ago and has to manually
 download my webpages to contain the css as some other libraries do download
 the pdf but results in loss of css and thus the design and quality.

 I hope to get an opinion and advice and if I have missed some package
 or if anyone thinks of some more features, I will be happy to listen.

 Thanking You
 Anuttam Anand

 --
 You received this message because you are subscribed to the Google
 Groups "Django developers (Contributions to Django itself)" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-develop...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-developers/d38880c2-c67c-47c5-adc4-6fe016b2160bn%40googlegroups.com
 
 .

>>> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/a4390bd9-134b-4405-91ef-d4be22800169n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discu

Re: GSoc proposal : A django pdfs library.

2021-04-11 Thread Carlton Gibson
Hi Anuttam — If you're happy I'd submit. I'm afraid I don't have capacity 
to pre-review before the deadline here. 
Good luck. 

Kind Regards,

Carlton


On Monday, 12 April 2021 at 08:27:12 UTC+2 anutta...@gmail.com wrote:

> Hey , 
> Can anyone please let me know if I have to include other things for my 
> final proposal or should I submit ?
> Thanks.
>
> On Thu, 8 Apr, 2021, 8:58 am Anuttam Anand,  wrote:
>
>> Hey Carton ,
>> I have made my final proposal , please let me know for any additional 
>> points or advice.
>> Google Docs Link : 
>> https://docs.google.com/document/d/1HPi0hI3BlVRuUiq2JPxKxm_jnGwjfqhCczWaDHUWhSE/edit?usp=sharing
>>
>> On Tuesday, April 6, 2021 at 10:16:26 PM UTC+5:30 Anuttam Anand wrote:
>>
>>> Hey Carlton,
>>>
>>> Thanks for responding . This is my first open source project and I'm 
>>> pretty scared . But my view is to add features for a django pdf library , 
>>> features which other frameworks have and are not in current scope like in 
>>> ReportLab.
>>> After doing some research , I have found some python based APIs and 
>>> existing libraries , not very refined but possible to use with django. 
>>> Since they require a lot of dependencies, making a whole package of the 
>>> thing will be more efficient for the user. I hope you and all others can 
>>> give me more advice and if you people know anymore libraries or similar 
>>> packages. P.S if you guys have any more features which you think a pdf 
>>> conversion package should have , I would be glad to hear them.
>>> Again thanks 
>>>
>>> - Anuttam Anand
>>>
>>> On Tuesday, April 6, 2021 at 7:16:22 PM UTC+5:30 carlton...@gmail.com 
>>> wrote:
>>>
 Hi Anuttam. 

 I’d guess that a PDF library itself would be out of scope for Django 
 itself — but this is a perennial problem. 

 **Quite maybe** a project to modernise the Outputting PDFs with Django 
 docs would be in scope... 🤔

 https://docs.djangoproject.com/en/3.1/howto/outputting-pdf/

 Questions that you could cover: 
 What is the best way to do it these days? What dependencies does that 
 involve? 
 Are there helpers we could add to Django? (And so on.) 

 An awesome proposal there might swing it. (I can’t say definitely.) 
 (Even if it didn’t make GSoC, such a proposal would convert well into a 
 profile blog piece, so if you’re keen it might be worth the punt.) 

 I hope that helps. 

 Kind regards, Carlton 

 On Mon, 5 Apr 2021 at 15:58, Anuttam Anand  wrote:

> Hello to all my djangomates. I am Anuttam Anand, Btech student from 
> India. For this year's GSoc , I am thinking of making a proposal for a 
> more 
> efficient and feature containing pdf library. Upon researching , I found 
> ReportLab to be the pdf making library in django but it lacks many 
> features 
> and has been reported to be buggy. 
> Features which I am thinking of including:
> 1. A direct webpage conversion to pdf and containing atleast 80% of 
> css.
> 2. An option to download or keep the pdf in the server itself , 
> location parameter which is specified by the programmer.
> 3. An option to download the pdf to the user's device upon calling the 
> function.
> Motivation:
> 1. The main motivation behind this project is that many websites need 
> pdfs like transaction receipts or some reports which are downloaded.
> 2. I personally faced this issue a while ago and has to manually 
> download my webpages to contain the css as some other libraries do 
> download 
> the pdf but results in loss of css and thus the design and quality.
>
> I hope to get an opinion and advice and if I have missed some package 
> or if anyone thinks of some more features, I will be happy to listen.
>
> Thanking You
> Anuttam Anand
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to django-develop...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/d38880c2-c67c-47c5-adc4-6fe016b2160bn%40googlegroups.com
>  
> 
> .
>
 -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-develop...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/a4390bd9-134b-4405-91ef-d4be22800169n%40googlegroups.com
>>  
>>