Did I find the right examples for you? yes no

All Samples(12)  |  Call(0)  |  Derive(0)  |  Import(12)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/r/a/RallyRestToolkitForPython-HEAD/pyral/restapi.py   RallyRestToolkitForPython(Download)
from .config  import PROTOCOL, SERVER, WS_API_VERSION, WEB_SERVICE, SCHEMA_SERVICE, AUTH_ENDPOINT
from .config  import RALLY_REST_HEADERS
from .config  import USER_NAME, PASSWORD 
from .config  import START_INDEX, PAGESIZE, MAX_PAGESIZE, MAX_ITEMS
from .config  import timestamp

src/t/w/TwistedBot-HEAD/twistedbot/factory.py   TwistedBot(Download)
    def online_auth(self):
        log.msg('doing online login')
        url = "http://login.minecraft.net/?user=%s&password=%s&version=1337" % (config.EMAIL, config.PASSWORD)
        response = yield getPage(url).addErrback(logbot.exit_on_error)
        log.msg("responce from http://login.minecraft.net: %s" % response)

src/a/d/AdminCraft-HEAD/admincraft/views.py   AdminCraft(Download)
    def decorated(*args, **kwargs):
        if config.USERNAME != session.get('username') or config.PASSWORD != session.get('password'):
            return redirect(url_for('admincraft.login'))
        return f(*args, **kwargs)
    return decorated

src/b/i/bitbucket-cli-0.4.1/bitbucket/cli.py   bitbucket-cli(Download)
from .repositories import get_user_repos
from .repositories import set_privilege
from .config import USERNAME, PASSWORD, SCM, PROTOCOL
from requests.exceptions import HTTPError
from requests.status_codes import _codes as status_codes
                            help='your bitbucket username')
        if 'password' in args_to_add:
            parser.add_argument('--password', '-p', default=PASSWORD,
                            help='your bitbucket password')
        if 'owner' in args_to_add:

src/b/a/Bash-Utils-HEAD/reddit/submit_to_reddit_gui/01_submit.py   Bash-Utils(Download)
def submit_to_reddit(title, url, subreddit):
    r = reddit.Reddit(user_agent="submit to reddit script")
    r.login(user=cfg.USERNAME, password=cfg.PASSWORD)
 
    return r.submit(subreddit, url, title)

src/m/y/mytweets-HEAD/fetch.py   mytweets(Download)
    import simplejson as json
 
from config import USERNAME, PASSWORD
 
USER_TIMELINE = "http://twitter.com/statuses/user_timeline.json"
FILE = "my_tweets.json"
 
h = httplib2.Http()
h.add_credentials(USERNAME, PASSWORD, 'twitter.com')

src/s/m/SmartWall-HEAD/Spider.py   SmartWall(Download)
        except:
            log("Haven't Been Authorizationed!")
            self.try_login(config.USERNAME, config.PASSWORD)
 
    def _request(self, url, bodies={}, headers={}):

src/f/l/Flask-Landing-HEAD/tests/landing_tests.py   Flask-Landing(Download)
import os
import unittest
from app import app, db
from app.module.models import Email
from config import _basedir, USERNAME, PASSWORD
    def test_loginSuccess(self):
        self.driver.get(HOMEPAGE)
        self.driver.find_element_by_class_name("login").click()
        self.driver.find_element_by_class_name('user').send_keys(USERNAME)
        self.driver.find_element_by_class_name('pass').send_keys(PASSWORD)