profile
viewpoint
Michael Cetrulo git2samus http://www.michael-cetrulo.com/ Uruguay https://www.linkedin.com/in/web2samus

datauy/ATuServicio 6

Aplicación ATuServicio.uy para visualización de datos del Sistema Nacional Integrado de Salud desarrollada por DATA en convenio con la DGSNIS del Ministerio de Salud Pública

datauy/a-tu-servicio 1

Proyecto viejo, el código actual vive en https://github.com/datauy/atuservicio

datauy/quesabes-theme 1

quesabes.uy theme for Alaveteli

git2samus/alaveteli 1

Sistema de pedidos de información al estado. Basado en alaveteli.org Este codigo es el que se usa en el sistema de pedidos en Uruguay.

git2samus/batch_unsubscribe 1

Dead-simple mass unsubscription from github repositories

git2samus/cukunity 1

cukunity is an automation/testing framework that simplifies BDD testing of Unity 3D games.

git2samus/django-devserver 1

A drop-in replacement for Django's runserver.

git2samus/django-mailer 1

mail queuing and management for the Django web framework

git2samus/dupes 1

Commandline tool to find duplicate files

PR opened narrowfail/UyList

reglas para elpais

contenido oculto por css

+2 -0

0 comment

1 changed file

pr created time in 9 days

push eventgit2samus/UyList

Michael Cetrulo

commit sha db63bd7410c032dfd752ac51dd6b7d6b4faae64d

reglas para elpais contenido oculto por css

view details

push time in 9 days

fork git2samus/UyList

Sets of rules designed for Adblock that automatically remove unwanted ads from Uruguayan sites.

fork in 9 days

push eventgit2samus/AwardBot

Michael Cetrulo

commit sha 654a92c09f8758e44e5cf70ae08900e36a792e0d

import structure from SubscriptionBot

view details

Michael Cetrulo

commit sha dff4ce59db79e8c2b1901f8a799e2cd6d4746c0e

skeleton implementation

view details

Michael Cetrulo

commit sha 4e37b40a29a614bf21e2e41346e97b3bf9bffc6c

apply normalization to all strings / configurable escape char

view details

Michael Cetrulo

commit sha 0bb1520b683c2a1227e63563224fcdde8022f9bc

introducing templates

view details

push time in a month

push eventgit2samus/reddit-bot-shared

Michael Cetrulo

commit sha b15d375cef7beab34ad328df5fe59aa757a4aece

copy shared files from SubscriptionBot

view details

push time in a month

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha 7a81bc34eb9c1004999420b2b36efd7243e5973d

introduce shared submodule

view details

Michael Cetrulo

commit sha d90aa4a854308b5dbf229da2699ba27a56adf0fa

rename main module

view details

push time in a month

push eventgit2samus/reddit-bot-shared

Michael Cetrulo

commit sha 29d4362e57188e7adfc4b5833e4ea712e657d656

copy shared files from SubscriptionBot

view details

push time in a month

push eventgit2samus/reddit-bot-shared

Michael Cetrulo

commit sha 756281a56bb0473dc4e38daebec3a4a1edcc39d1

creating specialized classes +gitignore

view details

push time in a month

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha d237058d8a213aea6fa87fd27a113d1ea32ee01e

rename main module

view details

push time in a month

push eventgit2samus/reddit-bot-shared

Michael Cetrulo

commit sha 1b9f3c453388fd899ebc909f8c5f6ef6246a0ab2

creating specialized classes +gitignore

view details

push time in a month

create barnchgit2samus/AwardBot

branch : master

created branch time in a month

created repositorygit2samus/AwardBot

A Reddit bot for user awards, inspired by RedditSilver/RedditBronze bots.

created time in a month

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha bb56d3b31add33a9557565bde7865cae99663e16

adjust delay times

view details

Michael Cetrulo

commit sha 93a071ccf637792d758bd1a7476922fafdbe9071

add --reset-after flag

view details

Michael Cetrulo

commit sha c2ece61fb535ecd87d5bb61105d9229555681764

rename interrupt handlers

view details

Michael Cetrulo

commit sha 99f42919fe3f6caa1c083f9abb68ec58f6c03e0a

refactor name parsing

view details

Michael Cetrulo

commit sha b189180ba1a6784e6f209e4c1f37c3abe52bf6b5

introduce shared submodule

view details

push time in a month

create barnchgit2samus/reddit-bot-shared

branch : master

created branch time in a month

created repositorygit2samus/reddit-bot-shared

shared files for Reddit bots

created time in a month

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha 6f2043595f54bb2b84e38a3309348191ec57cdde

there seems to be ids larger than 6 chars

view details

Michael Cetrulo

commit sha a2f93da70cac2d8aba8e500ab5a9c6219994af65

make sure we mark as seen items on close

view details

Michael Cetrulo

commit sha 59abcdddcacc4e306397928517fff1008cd0fa24

factor out common XML procedures

view details

Michael Cetrulo

commit sha 12e25e130b844d699f0aa70da76dae490369c6dd

refactor iter_submissions

view details

Michael Cetrulo

commit sha d03bcf0831d30de57483b88093f5c74440bfb8ac

register comments by user

view details

Michael Cetrulo

commit sha bbe5fc62ce9cc6e9381f1dedfc4e96a9909267eb

refactor feed parser

view details

push time in 2 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha e8be87498ec53400fc1be8b16643df6c6f8610fd

subscribe/unsubscribe users on db

view details

push time in 2 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha 7aba324456135c3598c2f0c165b5d93f07f5b04a

refactor process class

view details

Michael Cetrulo

commit sha 08a560e1e6b96b884de9357bfdbb1a8cabc57e5c

refactor init_db

view details

Michael Cetrulo

commit sha 445ea6890d5ab12ae69f72faf49c788265c1ca21

Inbox parser layout

view details

Michael Cetrulo

commit sha 93972dd34d80e113df03414522713c6525f394fd

normalize queries

view details

Michael Cetrulo

commit sha 1d566c288870e449b4cfb4582e6463c40fbb6a64

subscribe/unsubscribe users on db

view details

push time in 2 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha e4461edf030e13f8263d2f5f8c4c907b7bdea666

save last submission id on database

view details

push time in 2 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha 8db1675697ad0f8561f4c262c99aa017f9a40a7d

send submission messages from bot

view details

Michael Cetrulo

commit sha 77af352f623fd472088014d527f615e589a70da5

enable sticky on bot comments

view details

Michael Cetrulo

commit sha 479c13098a4f9269ba4d1842585dda59edf9ae20

connect database and init tables

view details

Michael Cetrulo

commit sha b3ae7255057cc4ae4928526a1b3f80659a2b3c6e

save last submission id on database

view details

push time in 2 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha 267f4f013eb426f658ba8139a7b75211e1094636

properly parse feed entries

view details

Michael Cetrulo

commit sha a32c2af4c2f5a7a9746552665db54bbf567c22bf

also accept ids as after param

view details

Michael Cetrulo

commit sha f76e795493bc22fe95f70871303545390dc33c02

send submission messages from bot

view details

Michael Cetrulo

commit sha b36cacf35c25b3c7b1d15ddfa06b6c08c6cff901

enable sticky on bot comments

view details

push time in 3 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha 1ee5e4c084fe24809dea601b81f3c63aa5632665

enable sticky on bot comments

view details

push time in 3 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha 1aa7bf58f31a6991508c6a6e87f5b768eef6b6f2

refactor id conversion

view details

Michael Cetrulo

commit sha 7932ed958bbbec75335af52b56051e0ef7833ba9

hack to support interpolation in praw.ini https://github.com/praw-dev/praw/pull/1290

view details

Michael Cetrulo

commit sha ceddd4d5878c4ea119f531be606312d484b8c510

properly parse feed entries

view details

Michael Cetrulo

commit sha 5f2035d286839dbdb8bb668d8266916c2976015e

also accept ids as after param

view details

Michael Cetrulo

commit sha e22a0d183a837cb73f4898bc94ce347b236a9403

send submission messages from bot

view details

push time in 3 months

Pull request review commentpraw-dev/praw

Implementing configurable interpolation

 """PRAW constants.""" from .endpoints import API_PATH  # noqa: F401 -__version__ = "6.5.2.dev0"+__version__ = "6.6.0.dev0"

All right reverted the revert, rebumped the debumped bumpity doo, we're good to go!

git2samus

comment created time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha 13670d0dc1554d8621d5d2954087817318544056

Revert "Restoring dev version" This reverts commit e4c6129a5deecbf82606fec7f55e947470a105d4.

view details

push time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha 198da3b60b08d7e4115393acf78419e6c33b882e

Updating change log

view details

push time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha e4c6129a5deecbf82606fec7f55e947470a105d4

Restoring dev version

view details

push time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha 739e16cafc98928b60e86ad8340d53c728d86090

Missing import

view details

push time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha c4980fcc7a3e3c458693a99751c3befcc1251386

Update type hints

view details

push time in 3 months

Pull request review commentpraw-dev/praw

Implementing configurable interpolation

 example, to use the settings defined for ``bot2`` as shown above, initialize  A site can also be selected via a ``praw_site`` environment variable. This approach has precedence over the ``site_name`` parameter described above.++Using Interpolation+-------------------++By default PRAW doesn't apply any interpolation on the config file but this can+be changed with the ``config_interpolation`` parameter which can be set to+"basic" or "extended".++This can be useful to separate the components of the ``user_agent`` into+individual variables, for example:++.. _interpolation_site_example:+.. code-block:: ini++   [bot1]+   bot_name=MyBot+   bot_version=1.2.3+   bot_author=MyUser+   user_agent=script:%(bot_name)s:v%(bot_version)s (by /u/%(bot_author)s)++This uses basic interpolation thus :class:`.Reddit` need to be initialized as+follows:++.. code-block:: python++   reddit = praw.Reddit('bot1', config_interpolation='basic')++Then the value of ``reddit.config.user_agent`` will be+``script:MyBot:v1.2.3 (by /u/MyUser)``.++See `Interpolation of values+<https://docs.python.org/3/library/configparser.html#interpolation-of-values>`_+for details.++.. warning:: The ConfigParser instance is cached internally at the class level,+             it is shared across all instances of :class:`.Reddit` and once set

I copied this from the warning block above and that one is indented the same, how's it supposed to be?

git2samus

comment created time in 3 months

Pull request review commentpraw-dev/praw

Implementing configurable interpolation

 example, to use the settings defined for ``bot2`` as shown above, initialize  A site can also be selected via a ``praw_site`` environment variable. This approach has precedence over the ``site_name`` parameter described above.++Using Interpolation+-------------------++By default PRAW doesn't apply any interpolation on the config file but this can+be changed with the ``config_interpolation`` parameter which can be set to+"basic" or "extended".++This can be useful to separate the components of the ``user_agent`` into+individual variables, for example:++.. _interpolation_site_example:

you mean the .. _interpolation_site_example: part? I copied the example block from above but the pre_push script complained that the name was duplicated so I changed the name and retained the format, I think it creates an anchor in the document but I'm not sure.

git2samus

comment created time in 3 months

Pull request review commentpraw-dev/praw

Implementing configurable interpolation

 """PRAW constants.""" from .endpoints import API_PATH  # noqa: F401 -__version__ = "6.5.2.dev0"+__version__ = "6.6.0.dev0"

We're adding a new feature, I thought that a minor version bump was in order since it's backwards compatible (otherwise it would be a major bump) but this is the development branch so if you want we can merge all changes on the next release and update the version there.

git2samus

comment created time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha f62fa720d680292e8ec6ebca486543654c674797

Include Windows home for test fixtures

view details

push time in 3 months

Pull request review commentpraw-dev/praw

Implementing configurable interpolation

 def short_url(self) -> str:             raise ClientException("No short domain specified.")         return self._short_url -    def __init__(self, site_name: str, **settings: str):+    def __init__(+        self, site_name: str, interpolation: str = None, **settings: str

I wasn't sure if this applied to the Reddit or Config class so I changed both.

git2samus

comment created time in 3 months

Pull request review commentpraw-dev/praw

Implementing configurable interpolation

 reddit_url=https://www.reddit.com  # The URL prefix for short URLs. short_url=https://redd.it++[INTERPOLATION]

right, I didn't realized that was the global ini file; I've moved it to a fixture on the tests directory now.

git2samus

comment created time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha c2288f533fa650487979c73840f0953beb576e8b

Fix typo

view details

Michael Cetrulo

commit sha 736092fd2be89bde74776a5bd956a0414956a999

Use separate praw.ini for testing

view details

Michael Cetrulo

commit sha e70810216d026e0896f076e087b8233feb31b950

Renaming "interpolation" parameter

view details

push time in 3 months

PR opened praw-dev/praw

Implementing configurable interpolation

Feature Summary and Justification

This feature provides a new initialization argument to the Reddit class called 'interpolation' which takes the values 'basic' and 'extended' use it to configure ConfigParser.

By default interpolation remains disabled to maintain backwards compatibility.

References

  • https://www.reddit.com/r/redditdev/comments/en8j9y/praw_using_interpolation_in_prawini/
+86 -10

0 comment

7 changed files

pr created time in 3 months

push eventgit2samus/praw

Michael Cetrulo

commit sha e218caff10cffb63e87ce06be4d31675e07f0c21

Replace RawConfigParser with ConfigParser

view details

Michael Cetrulo

commit sha 8c6d5b0c06c5062e905f0279ce30dc2ae98e0f96

Implement ConfigParser interpolation option

view details

Michael Cetrulo

commit sha fb65d323f0a0cc307852308d0ed65caf4436913e

Extend tests for config interpolation

view details

Michael Cetrulo

commit sha faf0964c31b64040c0f679bafb00d2df7cc7388b

Bump version / Update contributors

view details

Michael Cetrulo

commit sha aa8ceae4014b4b54a2bb65a8c0b468e8f65f34a0

Adding interpolation section to docs

view details

push time in 3 months

fork git2samus/praw

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

http://praw.readthedocs.io/

fork in 3 months

push eventgit2samus/SubscriptionBot

Michael Cetrulo

commit sha de198fe5d6df3263ff741641ddde28d74d14ba6b

adding .gitignore

view details

Michael Cetrulo

commit sha 119e435277633d867df34d12bb2b87aa3125e613

adding requirements

view details

Michael Cetrulo

commit sha 9e164164706b8db2d7b9a5eebc310e8fff1dc381

modules subcommand structure

view details

Michael Cetrulo

commit sha 661b89a083dc63493b113e7a86946ccb3b1c4fab

feed parser id iteration

view details

Michael Cetrulo

commit sha 670c21d21c8a9b39ec14bc38c802ab72ac69ce46

http debug

view details

Michael Cetrulo

commit sha 04a7c167e35161a862bba113019db1011ac44097

fix bug for empty results

view details

Michael Cetrulo

commit sha b4431d6d14b356357662345687630bf1f59681df

Apparently I should not use exit() from scripts https://docs.python.org/3/library/constants.html?highlight=exit#constants-added-by-the-site-module

view details

Michael Cetrulo

commit sha fae9c8f38d4c34dcdbc3c0c8249d205fd8608dcc

handle termination signals

view details

push time in 3 months

create barnchgit2samus/SubscriptionBot

branch : master

created branch time in 3 months

created repositorygit2samus/SubscriptionBot

Reddit Subscription Bot

created time in 3 months

startedWatchful1/UpdateMeBot

started time in 3 months

startedWatchful1/RemindMeBot

started time in 3 months

startedpraw-dev/praw

started time in 3 months

more