Wordnik Python public library

Overview

Python 2.7 client for Wordnik.com API

Overview

This is a Python 2.7 client for the Wordnik.com v4 API. For more information, see http://developer.wordnik.com/ . This client has been generated using the Swagger code generator, which builds robust API clients and beautiful API documentation automatically. If you'd like to learn more about Swagger, visit http://swagger.wordnik.com/ (but you don't need to know anything about Swagger to simply use this API client for Wordnik, this page will tell get you up to speed on that account).

If you need help after reading the below, please find us on Google Groups at https://groups.google.com/group/wordnik-api , @wordnikapi on Twitter, or on #wordnik on IRC.

Basic Setup

You should be able to install using easy_install or pip in the usual ways:

$ easy_install wordnik
$ pip install wordnik

Or just clone this repository and place the wordnik folder that you downloaded somewhere where it can be accessed by your scripts. Create a connection as follows:

from wordnik import *
apiUrl = 'http://api.wordnik.com/v4'
apiKey = 'YOUR API KEY HERE'
client = swagger.ApiClient(apiKey, apiUrl)

You'll want to substitute your own personal API key, of course. If you don't have an API key yet, you can get one here: http://developer.wordnik.com/ .

Calling a Method

Once you have a client set up, you need to instantiate an API object for whichever category or categories of items you are interested in working with. For example, to work with the word API and apply the method getTopExample method, you can do the following:

wordApi = WordApi.WordApi(client)
example = wordApi.getTopExample('irony')
print example.text

To find out what arguments the method expects, consult the online, interactive documentation at http://developer.wordnik.com/docs , and also check out the method definitions in wordnik/WordApi.py.

You can find out what fields to expect in the return value by using the interactive docs. You can also check out the tests in the tests/ folder in this repository; each method is shown and tested there. In this case, the documentation in WordAPI.py shows that getTopExample returns an instance of Example, so you would examine that class in wordnik/models/Example.py.

Some methods, like getDefinitions, also take optional keyword parameters which should be specified by name. Again, these are shown in the online documentation and in the method defintions.

wordApi = WordApi.WordApi(client)
definitions = wordApi.getDefinitions('badger',
                                     partOfSpeech='verb',
                                     sourceDictionaries='wiktionary',
                                     limit=1)
print definitions[0].text

The variable definitions is now an list of instances of the Definition class defined in wordnik/models/Definition.py, as indicated in the documentation for getDefinition.

Testing

The tests require you to set three environment variables:

$ export API_KEY=your api key
$ export USER_NAME=some wordnik.com username
$ export PASSWORD=the user's password

The tests can be run as follows:

$ python tests/BaseApiTest.py

License

Copyright 2013 Reverb Technologies, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Comments
  • Update PyPI

    Update PyPI

    It'd be great if the Python Package Index can be updated with the latest version so pip install wordnik will include the recent Unicode fixes.

    (Might be worth tagging releases too: https://github.com/wordnik/wordnik-python/releases)

    opened by hugovk 6
  • Broken packaging (IMHO)

    Broken packaging (IMHO)

    This is crazy!

    Put the full path to the directory containing the wordnik directory here

    sys.path.append('/parent/path')

    Isn't there a way to package your API such that this is not required?

    opened by gthomas 5
  • Windows: AttributeError when adding Unicode to word list

    Windows: AttributeError when adding Unicode to word list

    I can add Unicode words to Worknik lists with a Mac but not Windows. I don't have the Mac with me now to compare configurations but both have Python 2.7.

    This can easily be reproduced with testAddWordsToWordList() in WordListApiTest.py.

    With no changes the test passes. But if, for example, you change the string "delicious" on line 62 to Unicode u"delicious" it fails.

    https://github.com/wordnik/wordnik-python/blob/master/tests/WordListApiTest.py#L62

    Output of python tests\WordListApiTest.py:

    E...
    ======================================================================
    ERROR: testAddWordsToWordList (__main__.WordListApiTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "tests\WordListApiTest.py", line 71, in testAddWordsToWordList
        self.authToken, body=wordsToAdd)
      File "./wordnik\WordListApi.py", line 191, in addWordsToWordList
        postData, headerParams)
      File "./wordnik\swagger.py", line 61, in callAPI
        data = self.sanitizeForSerialization(postData)
      File "./wordnik\swagger.py", line 103, in sanitizeForSerialization
        return [self.sanitizeForSerialization(subObj) for subObj in obj]
      File "./wordnik\swagger.py", line 112, in sanitizeForSerialization
        for (key, val) in objDict.iteritems()
      File "./wordnik\swagger.py", line 113, in <dictcomp>
        if key != 'swaggerTypes'}
      File "./wordnik\swagger.py", line 110, in sanitizeForSerialization
        objDict = obj.__dict__
    AttributeError: 'unicode' object has no attribute '__dict__'
    
    ----------------------------------------------------------------------
    Ran 4 tests in 5.131s
    
    FAILED (errors=1)
    
    opened by hugovk 4
  • Python 3.x support

    Python 3.x support

    I've tried running 2to3, there were problems with assigning values to True/False, fixed that, and ended up with AttributeError("'dict' object has no attribute 'iteritems'",).

    Figured it would be safer to wait for an actual release.

    opened by Ferus 4
  • Package installs PHP instead of Python

    Package installs PHP instead of Python

    The package registered in PyPI appears to be completely unusable. Installing directly from github shows an exception, but results in a somewhat usable package install.

    Installing via sudo pip install -U wordnik and then running the README's example code results in the ImportError: No module named wordnik.api.APIClient.

    I thought the package in PyPI might be out of date, so I tried installing directly from github with sudo pip install -U https://github.com/wordnik/wordnik-python/zipball/master

    but that generates the exception, SyntaxError: ('invalid syntax', ('/usr/local/lib/python2.7/dist-packages/wordnik/api/VersionChecker.py', 1, 1, '<?php\n'))

    Turns out that the file /usr/local/lib/python2.7/dist-packages/wordnik/api/VersionChecker.py is a PHP file...

    opened by chrisspen 4
  • InvalidSyntax on Python 3 (True/False attribute)

    InvalidSyntax on Python 3 (True/False attribute)

    Many of the wordnik model classes attempt to set the attributes 'True' and 'False' on the class. It turns out this Syntax is not valid on Python 3. For example, in CaseSensitiveValues:

    class CaseSensitiveValues:
        """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
        def __init__():
            self.True = "true";
            self.False = "false"
    

    That syntax makes Wordnik simply unusable on Python 3 (as it's not possible to even import the wordnik modules). Furthermore, that generated code appears to be unusable.

    >>> import wordnik.model
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "env\Python33\site-packages\wordnik-2.0-py3.3.egg\wordnik\model\__init__.py", line 7, in <module>
        __import__(module[:-3], locals(), globals())
    ImportError: No module named 'ApiTokenStatus'
    

    I'm not sure what needs to be done, whether update the code generator or the underlying API or patch the generated code.

    Please let me know if I can help getting Python 3 support for the API.

    opened by jaraco 3
  • Codebase no longer provides distribution

    Codebase no longer provides distribution

    Recent changes to the codebase have removed the setup script, so the codebase can no longer be distributed via the package index or other common deployment paradigms.

    Can I fix that? I'd like to see an updated release of the driver added to PyPI.

    opened by jaraco 3
  • Fix for issue 19: add Unicode to Worknik word list

    Fix for issue 19: add Unicode to Worknik word list

    Trying to add a Unicode to a Wordnik list causes an AttributeError: 'unicode' object has no attribute '__dict__', reported in issue #19.

    Here's a fix.

    Tests are in issue #20. They fail before the fix, and pass after the fix.

    opened by hugovk 2
  • getDefinitions throws AttributeError for missing limit value

    getDefinitions throws AttributeError for missing limit value

    The following code to call getDefinitions() throws an exception:

    import os
    from wordnik.api.APIClient import APIClient
    from wordnik.api.WordAPI import WordAPI
    import wordnik.model
    api_key = os.environ.get('WORDNIK_API_KEY')
    my_client = APIClient(api_key, 'http://api.wordnik.com/v4')
    wordAPI = WordAPI(my_client)
    defs = wordAPI.getDefinitions('a')
    

    Traceback (most recent call last): File "test.py", line 8, in defs = wordAPI.getDefinitions('a') File "/usr/local/lib/python2.7/dist-packages/wordnik/api/WordAPI.py", line 133, in getDefinitions if wordDefinitionsInput != None and wordDefinitionsInput.limit != None: AttributeError: 'str' object has no attribute 'limit'

    The page http://www.wordnik.com/words/a shows several definitions for "a", show I'm assuming this is a valid call and should not result in an exception.

    opened by chrisspen 2
  • API doesn't honor proxy settings

    API doesn't honor proxy settings

    Our Linux server is located behind a proxy server, direct requests are blocked, and we have configured the environment variables for directing requests through that proxy server.

    Wordnik doesn't honor this setting. According to this thread (http://www.velocityreviews.com/forums/t325113-httplib-and-proxy.html), one should use urllib2 instead of httplib, as urllib2 honors the environment variables.

    In any case, Wordnik appears unusable in this mode.

    opened by jaraco 2
  • Test word lists with Unicode

    Test word lists with Unicode

    For testing issue 19. Right now these tests fail on Windows with Python 2.7:

    E.E...
    ======================================================================
    ERROR: testAddUnicodeWordsToWordList (__main__.WordListApiTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "tests\WordListApiTest.py", line 117, in testAddUnicodeWordsToWordLi
        self.authToken, body=wordsToAdd)
      File "./wordnik\WordListApi.py", line 191, in addWordsToWordList
        postData, headerParams)
      File "./wordnik\swagger.py", line 61, in callAPI
        data = self.sanitizeForSerialization(postData)
      File "./wordnik\swagger.py", line 103, in sanitizeForSerialization
        return [self.sanitizeForSerialization(subObj) for subObj in obj]
      File "./wordnik\swagger.py", line 112, in sanitizeForSerialization
        for (key, val) in objDict.iteritems()
      File "./wordnik\swagger.py", line 113, in <dictcomp>
        if key != 'swaggerTypes'}
      File "./wordnik\swagger.py", line 110, in sanitizeForSerialization
        objDict = obj.__dict__
    AttributeError: 'unicode' object has no attribute '__dict__'
    
    ======================================================================
    ERROR: testDeleteUnicodeWordsFromList (__main__.WordListApiTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "tests\WordListApiTest.py", line 139, in testDeleteUnicodeWordsFromL
        body=wordsToRemove)
      File "./wordnik\WordListApi.py", line 287, in deleteWordsFromWordList
        postData, headerParams)
      File "./wordnik\swagger.py", line 61, in callAPI
        data = self.sanitizeForSerialization(postData)
      File "./wordnik\swagger.py", line 103, in sanitizeForSerialization
        return [self.sanitizeForSerialization(subObj) for subObj in obj]
      File "./wordnik\swagger.py", line 112, in sanitizeForSerialization
        for (key, val) in objDict.iteritems()
      File "./wordnik\swagger.py", line 113, in <dictcomp>
        if key != 'swaggerTypes'}
      File "./wordnik\swagger.py", line 110, in sanitizeForSerialization
        objDict = obj.__dict__
    AttributeError: 'unicode' object has no attribute '__dict__'
    
    ----------------------------------------------------------------------
    Ran 6 tests in 7.516s
    
    FAILED (errors=2)
    
    opened by hugovk 1
  • DateTime parse error while querying word of the day

    DateTime parse error while querying word of the day

    Trace

    >>> wordoftheday_api = WordsApi.WordsApi(swagger.ApiClient(wordnik_api_key, wordnik_api))
    >>> wordoftheday_api.getWordOfTheDay()
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "E:\Software\Python27\lib\site-packages\wordnik\WordsApi.py", line 141, in getWordOfTheDay
        responseObject = self.apiClient.deserialize(response, 'WordOfTheDay')
      File "E:\Software\Python27\lib\site-packages\wordnik\swagger.py", line 176, in deserialize
        "%Y-%m-%dT%H:%M:%S.%f"))
      File "E:\Software\Python27\lib\_strptime.py", line 332, in _strptime
        (data_string, format))
    ValueError: time data '2019-04-25T03:00:00' does not match format '%Y-%m-%dT%H:%M:%S.%f'
    

    This wasn't happening earlier, is it because of a recent update? Anyway, changing line 175 in swagger.py to setattr(instance, attr, datetime.datetime.strptime(value[:-5], "%Y-%m-%dT%H:%M:%S")) seems to fix it

    opened by Suyash458 0
  • ImportError: No module named 'models'

    ImportError: No module named 'models'

    [rubiksmomo@nakedman /]$ python ~/nakedman.py Traceback (most recent call last): File "/home/rubiksmomo/nakedman.py", line 13, in from wordnik import * File "/usr/lib/python3.5/site-packages/wordnik/WordListApi.py", line 23, in from models import * ImportError: No module named 'models' [rubiksmomo@nakedman /]$

    opened by galqawala 1
  • Missing custom abort message via generated API client

    Missing custom abort message via generated API client

    My application is based on flask-restful-swagger, swagger-codegen, and python.

    I universally use abort() in server side logic for unexpected situations, and it works fine on swagger UI (the abort reason is displayed fine).

    from flask.ext.restful import abort
    
    class PlatformInfo(Resource, Parameter):
        def __init__(self):
            pass
    
        @swagger.operation(
            notes='Get platform info',
            type=SomeType,
            responseClass=SomeType.__name__,
            nickname='get_platform_info',
            parameters=[
            ],
            responseMessages=[
                {
                    "code": 200,
                    "message": "Successfully get platform info."
                },
                {
                    "code": 400,
                    "message": "Error occurs while retrieving platform info."
                },
            ])
        def get(self):
            response_dict = dict()
            try:
                response_dict = get_platform_data()
        except:
            abort(400, message='custom error messages here....')  # abort with custom error message
    
            return response_dict, 200
    

    swagger-issue

    However, if I use the client generated by swagger-codegen, the abort message would be missing. I can only get something like HTTP Error 400: BAD REQUEST

    Investigated further, I see that ApiClient issues a urllib2.urlopen(request)

    class ApiClient:
        """Generic API client for Swagger client library builds"""
    
        def __init__(self, apiKey=None, apiServer=None):
            if apiKey == None:
                raise Exception('You must pass an apiKey when instantiating the '
                                'APIClient')
            self.apiKey = apiKey
            self.apiServer = apiServer
            self.cookie = None
    
        def callAPI(self, resourcePath, method, queryParams, postData,
                    headerParams=None):
    
            url = self.apiServer + resourcePath
            headers = {}
            if headerParams:
                for param, value in headerParams.iteritems():
                    headers[param] = value
    
            headers['Content-type'] = 'application/json'
            headers['api_key'] = self.apiKey
    
            if self.cookie:
                headers['Cookie'] = self.cookie
    
            data = None
    
            if method == 'GET':
                ...(omitted)
    
            else:
                raise Exception('Method ' + method + ' is not recognized.')
    
            request = MethodRequest(method=method, url=url, headers=headers,
                                    data=data)
    
            # Make the request
            response = urllib2.urlopen(request)
            if 'Set-Cookie' in response.headers:
                self.cookie = response.headers['Set-Cookie']
            string = response.read()
    
            try:
                data = json.loads(string)
            except ValueError:  # PUT requests don't return anything
                data = None
    
            return data
    

    and abort() would be caught in HTTPDefaultErrorHandler of urllib2.py, and the message we put could not be found there anymore.

    class HTTPDefaultErrorHandler(BaseHandler):
        def http_error_default(self, req, fp, code, msg, hdrs):
            raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    

    Result (our message 'custom error messages here....' is lost):

        import platform_api  # client generated by swagger-codegen
        response = None
        try:
            response = platform_api.get_platform_info()
            print response
        except Exception as e:
            print e  # 'HTTP Error 400: BAD REQUEST'
            print e.msg  #  'BAD REQUEST'
    

    I was wondering that if this is a limitation on API Client use case of swagger-codegen, and how could we get around of this issue. Thanks.

    opened by paullo0106 0
  • package seems to be broken

    package seems to be broken

    rands-MacBook-Pro:wordnik-python rand$ python setup.py install running install running bdist_egg running egg_info writing wordnik.egg-info/PKG-INFO writing top-level names to wordnik.egg-info/top_level.txt writing dependency_links to wordnik.egg-info/dependency_links.txt reading manifest file 'wordnik.egg-info/SOURCES.txt' writing manifest file 'wordnik.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.6-universal/egg running install_lib running build_py creating build/bdist.macosx-10.6-universal/egg creating build/bdist.macosx-10.6-universal/egg/wordnik copying build/lib/wordnik/init.py -> build/bdist.macosx-10.6-universal/egg/wordnik copying build/lib/wordnik/AccountApi.py -> build/bdist.macosx-10.6-universal/egg/wordnik creating build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/init.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/ApiTokenStatus.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/AudioFile.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/AuthenticationToken.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Bigram.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Citation.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/ContentProvider.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Definition.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/DefinitionSearchResults.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Example.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/ExampleSearchResults.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/ExampleUsage.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Facet.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/FacetValue.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Frequency.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/FrequencySummary.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Label.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Note.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Related.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/ScoredWord.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/ScrabbleScoreResult.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Sentence.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/SimpleDefinition.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/SimpleExample.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/StringValue.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/Syllable.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/TextPron.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/User.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/WordList.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/WordListWord.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/WordObject.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/WordOfTheDay.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/WordSearchResult.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/models/WordSearchResults.py -> build/bdist.macosx-10.6-universal/egg/wordnik/models copying build/lib/wordnik/swagger.py -> build/bdist.macosx-10.6-universal/egg/wordnik copying build/lib/wordnik/WordApi.py -> build/bdist.macosx-10.6-universal/egg/wordnik copying build/lib/wordnik/WordListApi.py -> build/bdist.macosx-10.6-universal/egg/wordnik copying build/lib/wordnik/WordListsApi.py -> build/bdist.macosx-10.6-universal/egg/wordnik copying build/lib/wordnik/WordsApi.py -> build/bdist.macosx-10.6-universal/egg/wordnik byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/init.py to init.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/AccountApi.py to AccountApi.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/init.py to init.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/ApiTokenStatus.py to ApiTokenStatus.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/AudioFile.py to AudioFile.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/AuthenticationToken.py to AuthenticationToken.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Bigram.py to Bigram.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Citation.py to Citation.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/ContentProvider.py to ContentProvider.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Definition.py to Definition.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/DefinitionSearchResults.py to DefinitionSearchResults.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Example.py to Example.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/ExampleSearchResults.py to ExampleSearchResults.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/ExampleUsage.py to ExampleUsage.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Facet.py to Facet.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/FacetValue.py to FacetValue.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Frequency.py to Frequency.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/FrequencySummary.py to FrequencySummary.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Label.py to Label.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Note.py to Note.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Related.py to Related.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/ScoredWord.py to ScoredWord.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/ScrabbleScoreResult.py to ScrabbleScoreResult.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Sentence.py to Sentence.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/SimpleDefinition.py to SimpleDefinition.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/SimpleExample.py to SimpleExample.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/StringValue.py to StringValue.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/Syllable.py to Syllable.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/TextPron.py to TextPron.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/User.py to User.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/WordList.py to WordList.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/WordListWord.py to WordListWord.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/WordObject.py to WordObject.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/WordOfTheDay.py to WordOfTheDay.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/WordSearchResult.py to WordSearchResult.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/models/WordSearchResults.py to WordSearchResults.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/swagger.py to swagger.pyc SyntaxError: ('invalid syntax', ('build/bdist.macosx-10.6-universal/egg/wordnik/swagger.py', 112, 23, ' for (key, val) in objDict.iteritems()\n'))

    byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/WordApi.py to WordApi.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/WordListApi.py to WordListApi.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/WordListsApi.py to WordListsApi.pyc byte-compiling build/bdist.macosx-10.6-universal/egg/wordnik/WordsApi.py to WordsApi.pyc creating build/bdist.macosx-10.6-universal/egg/EGG-INFO copying wordnik.egg-info/PKG-INFO -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying wordnik.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying wordnik.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO copying wordnik.egg-info/top_level.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... wordnik.init: module references file wordnik.models.init: module references file creating 'dist/wordnik-2.1-py2.6.egg' and adding 'build/bdist.macosx-10.6-universal/egg' to it removing 'build/bdist.macosx-10.6-universal/egg' (and everything under it) Processing wordnik-2.1-py2.6.egg creating /Library/Python/2.6/site-packages/wordnik-2.1-py2.6.egg Extracting wordnik-2.1-py2.6.egg to /Library/Python/2.6/site-packages SyntaxError: ('invalid syntax', ('/Library/Python/2.6/site-packages/wordnik-2.1-py2.6.egg/wordnik/swagger.py', 112, 23, ' for (key, val) in objDict.iteritems()\n'))

    Adding wordnik 2.1 to easy-install.pth file

    Installed /Library/Python/2.6/site-packages/wordnik-2.1-py2.6.egg Processing dependencies for wordnik==2.1 Finished processing dependencies for wordnik==2.1

    opened by randdvorak 4
Owner
Wordnik
Wordnik
Official python API for Phish.AI public and private API to detect zero-day phishing websites

phish-ai-api Summary Official python API for Phish.AI public and private API to detect zero-day phishing websites How it Works (TLDR) Essentially we h

Phish.AI 168 May 17, 2022
CryptoApp - Python code to pull wallet balances from a variety of different chains through nothing other than your public key.

CryptoApp - Python code to pull wallet balances from a variety of different chains through nothing other than your public key.

Zach Frank 4 Dec 13, 2022
Robot Swerve Test Public With Python

Robot-Swerve-Test-Public The codebase for our swerve drivetrain prototype robot.

null 1 Jan 9, 2022
A Python script to backup all repos (public or private) of a user.

GithubBackupAllRepos A Python script to backup all repos (public or private) of a user. Features Clone public and private repos Load specified SSH key

Podalirius 15 Jan 3, 2023
SimpleTelegramScraper - A python script scrapes accounts from public groups via Telegram API and saves them in a CSV file

SimpleTelegramScraper - the best scraper on GitHub This simple python script scr

Deniz Shabani 12 Oct 6, 2022
Fetch information about a public Google document.

xeuledoc Fetch information about any public Google document. It's working on : Google Docs Google Spreadsheets Google Slides Google Drawning Google My

Malfrats Industries 655 Jan 3, 2023
Public repo of the bot

wiki-reddit-bot Public repo of u/wikipedia_answer_bot Tools Language: Python Libraries: praw (Reddit API) mediawikiapi (Wikipedia API) tenacity How it

TheBugYouCantFix 51 Dec 3, 2022
SSH-Restricted deploys an SSH compliance rule (AWS Config) with auto-remediation via AWS Lambda if SSH access is public.

SSH-Restricted SSH-Restricted deploys an SSH compliance rule with auto-remediation via AWS Lambda if SSH access is public. SSH-Auto-Restricted checks

Adrian Hornsby 30 Nov 8, 2022
Cloud-native, data onboarding architecture for the Google Cloud Public Datasets program

Public Datasets Pipelines Cloud-native, data pipeline architecture for onboarding datasets to the Google Cloud Public Datasets Program. Overview Requi

Google Cloud Platform 109 Dec 30, 2022
This script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin.

BOOKING IN BERLINS VACCINATION CENTERS This python script books automatically a slot on Doctolib in one of the public vaccination centers in Berlin. T

null 17 Jan 13, 2022
a public repository helping ML/DL engineers and DS to beautify the notebook with minimal coding.

ml-helper-functions a public repository helping ML/DL engineers and DS to beautify the notebook with minimal coding.

Jesal Patel 4 Jun 24, 2021
Public API client for GETTR, a "non-bias [sic] social network," designed for data archival and analysis.

GoGettr GoGettr is an API client for GETTR, a "non-bias [sic] social network." (We will not reward their domain with a hyperlink.) GoGettr is built an

Stanford Internet Observatory 72 Dec 14, 2022
The public discord bot, created by: primitt, further developed by: duino-coin team.

Duino Stats Mini A public Duino-Stats Discord bot. Click this link to invite the bot to your server. License Duino Stats Mini distributed under the MI

primboi 8 Mar 14, 2022
Detects members having unicode names. Public bot: @scarletwitchprobot

✨ Scarletwitch bot ✨ Detects unicode names members in a tg chat & provides a option to take action on that user ! Public bot: @scarletwitchprobot Supp

ÁÑÑÍHÌLÅTØR SPÄRK 18 Nov 12, 2022
Gets instagram public username and returns usefull informations like profilepic(b64), video_urls etc.

InstaSucker Gets instagram public username and returns usefull informations like profilepic(b64), video_urls etc. Information this project contains a

Armin Amiri 5 Apr 30, 2022
The world's first public V2ray manager Telegram bot

?? DarkV2ray-Manager-Bot 0.1 UPDATE 11/11/2021 Telegram bot v2ray Test user expired date data limit paylode && sni usage user on/off heroku bot hostin

@Dk_king_offcial 1 Nov 11, 2021
Centralized whale instance using github actions, sourcing metadata from bigquery-public-data.

Whale Demo Instance: Bigquery Public Data This is a fully-functioning demo instance of the whale data catalog, actively scraping data from Bigquery's

Hyperquery 17 Dec 14, 2022
Public Mirror of Team 15's Code and Reports for RBE 3002 B21

RBE3002 Team 15 Lab Repository Team 15's Repository for all code written for RBE 3002 using the Robotis TurtleBot3 Written By Matthew Haahr, Leo Morri

Matthew Haahr 3 Mar 21, 2022