Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)
Parse all arguments from the provided request and return the results
as a Namespace

src/f/l/flask-restful-HEAD/examples/todo.py   flask-restful(Download)
    def put(self, todo_id):
        args = parser.parse_args()
        task = {'task': args['task']}
        TODOS[todo_id] = task
        return task, 201
    def post(self):
        args = parser.parse_args()
        todo_id = 'todo%d' % (len(TODOS) + 1)
        TODOS[todo_id] = {'task': args['task']}
        return TODOS[todo_id], 201

src/m/a/maproulette-HEAD/maproulette/api/__init__.py   maproulette(Download)
        parser.add_argument('include_inactive', type=bool, default=False,
                            help="include_inactive it not bool")
        args = parser.parse_args()
 
        difficulty = None
        parser.add_argument('assign', type=int, default=1,
                            help='Assign could not be parsed')
        args = parser.parse_args()
        osmid = session.get('osm_id')
        assign = args['assign']
        parser.add_argument('editor', type=str,
                            help="editor cannot be parsed")
        args = parser.parse_args()
 
        # get the task

src/a/r/argos-HEAD/argos/web/api/resources.py   argos(Download)
def parse_date_range():
    args = feed_parser.parse_args()
    from_date = args.get('from', None)
    to_date = args.get('to', None)
 
    def get(self):
        page = page_parser.parse_args().get('page')
 
        feed_args = feed_parser.parse_args()
        from_date = feed_args.get('from', None)
    def get(self):
        page = page_parser.parse_args().get('page')
 
        feed_args = feed_parser.parse_args()
        from_date = feed_args.get('from', None)

src/t/e/telepathy-0.0.4/telepathy/endpoints.py   telepathy(Download)
    def post(self, portfolio_id):
        parser = reqparse.RequestParser()
        parser.add_argument('context', type=str)
        parser.add_argument('bot', type=bool)
        args = parser.parse_args()
        #TODO parser.add_argument('less', type=float)
        #TODO parser.add_argument('more', type=float)
        args = parser.parse_args()
 
        try:
    def post(self, portfolio_id):
        parser = reqparse.RequestParser()
        parser.add_argument('deal', type=str, action='append', required=True)
        args = parser.parse_args()
 

src/n/e/newspaper-delivery-HEAD/app.py   newspaper-delivery(Download)
    def get(self):
        args = article_parser.parse_args()
        url = args['url']
        output_format = args['format']
        article = newspaper.build_article(url, config)
    def get(self):
        args = site_parser.parse_args()
        source = newspaper.build(args['url'], config)
        return {
            'domain': source.domain,

src/a/r/argos-HEAD/argos/web/api/search.py   argos(Download)
    def get(self, raw_query):
        args = search_parser.parse_args()
        page = page_parser.parse_args().get('page')
        raw_types = args.get('types') or 'event,story,concept'
        types = raw_types.split(',')

src/a/r/argos-HEAD/argos/web/api/user.py   argos(Download)
    def post(self):
        if current_user.is_authenticated():
            id = watching_parser.parse_args()['story_id']
            story = models.Story.query.get(id)
            if not story:
    def post(self):
        if current_user.is_authenticated():
            id = bookmarked_parser.parse_args()['event_id']
            event = models.Event.query.get(id)
            if not event:

src/f/l/flask-todo-HEAD/backend/auth.py   flask-todo(Download)
        def concrete_backend():
            parser = RequestParser()
            for argument in arguments:
                parser.args.append(argument)
            user, created = func(parser.parse_args())