freelancehunt.models package

freelancehunt.models.bid module

Bid object representation.

Documentation example:

{
  "id": 3119168,
  "type": "bid",
  "attributes": {
    "days": 25,
    "safe_type": "employer",
    "budget": {
      "amount": 18000,
      "currency": "UAH"
    },
    "comment": "I can help you with this problem.",
    "status": "active",
    "is_hidden": false,
    "is_winner": false,
    "freelancer": {
      "id": 191397,
      "type": "freelancer",
      "login": "NeoSeo",
      "first_name": "Maxim",
      "last_name": "P.",
      "avatar": {
        "small": {
          "url": "https://content.freelancehunt.com/profile/photo/50/NeoSeo.png",
          "width": 50,
          "height": 50
        },
        "large": {
          "url": "https://content.freelancehunt.com/profile/photo/225/NeoSeo.png",
          "width": 255,
          "height": 255
        }
      },
      "self": "http://api.freelancehunt.com/v2/freelancers/191397"
    },
    "project": {
      "id": 299172,
      "type": "project",
      "name": "Project with bids",
      "status": {
        "id": 11,
        "name": "Open for proposals"
      },
      "safe_type": "employer",
      "budget": {
        "amount": 2300,
        "currency": "UAH"
      },
      "self": "http://api.freelancehunt.com/v2/projects/299172"
    },
    "attachment": null,
    "published_at": "2018-04-15T23:44:05+03:00"
  }
},
class freelancehunt.models.bid.Bid(id, status, days, safe_type, comment, currency, is_hidden, is_winner, freelancer, budget, project, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Bid API object.

Variables
  • id (int) – bid unique identifier

  • status (str) – bid current status

  • days (int) – days estimated by freelancer for complete this project

  • safe_type (str) – type of payment method (for safe)

  • comment (str) – comment from freelancer about this project

  • currency (str) – freelancer currency for bid

  • is_hidden (bool) – mark hidden from others bid

  • is_winner (bool) – mark winner bid

  • freelancer (Freelancer) – bid creator information

  • budget (BudgetInfo) – estimated budget for this project

  • project (Project) – related project information

choose(comment)

Choose this bid.

Note

Only for Employer and your own project.

Parameters

comment (str) – comment for winner to start dialog with freelancer.

Returns

status of operation.

Return type

bool

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

Bid

reject()

Reject this bid.

Note

Only for Employer and your own project.

Returns

status of operation.

Return type

bool

restore()

Restore your bid.

Returns

status of operation.

Return type

bool

revoke()

Revoke your bid.

Note

Only for Freelancer and your own bid.

Returns

status of operation.

Return type

bool

freelancehunt.models.budget module

Budget object representation.

Documentation example:

"budget": {
    "amount": 2500,
    "currency": "UAH"
},
class freelancehunt.models.budget.BudgetInfo(amount, currency, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Budget.

Variables
  • amount (int) – amount of budget

  • currency (str) – current currency

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

BudgetInfo

property is_rub

Check that currency is Russian Ruble.

Returns

True if currency is ruble, False otherwise

Return type

bool

property is_uah

Check that currency is Ukrainian Hryvnia.

Returns

True if currency is hryvnia, False otherwise

Return type

bool

freelancehunt.models.city module

City object representation.

Documentation example:

{
    "id": 2627,
    "name": "Авдеевка"
},
class freelancehunt.models.city.City(id, name, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with City.

Variables
  • id (int) – city API identifier

  • name (str) – city name

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

City

freelancehunt.models.contest module

Contest object representation.

Documentation example:

{
  "id": 1390,
  "type": "contest",
  "attributes": {
    "name": "New contest",
    "description": "Transferring party — The Customers and the Contractors owning confidential information and personal data transferred by them to the Website Administration during registration and use of the Service.",
    "description_html": "<p>Transferring party — The Customers and the Contractors owning confidential information and personal data transferred by them to the Website Administration during registration and use of the Service.</p>",
    "skill": {
      "id": 9,
      "name": "Icon"
    },
    "status": {
      "id": 140,
      "name": "Final"
    },
    "budget": {
      "amount": 1002,
      "currency": "UAH"
    },
    "application_count": 1,
    "published_at": "2019-04-08T17:05:25+03:00",
    "duration_days": 5,
    "final_started_at": "2019-04-13T17:05:25+03:00",
    "freelancer": null,
    "employer": {
      "id": 38444,
      "type": "employer",
      "login": "jeweller",
      "first_name": "Oleg",
      "last_name": "Vinnik",
      "avatar": {
        "small": {
          "url": "https://content.freelancehunt.com/profile/photo/50/jeweller.png",
          "width": 50,
          "height": 50
        },
        "large": {
          "url": "https://content.freelancehunt.com/profile/photo/225/jeweller.png",
          "width": 255,
          "height": 255
        }
      },
      "self": "https://api.freelancehunt.com/v2/employers/38444"
    },
    "updates": []
  },
  "links": {
    "self": {
      "api": "https://api.freelancehunt.com/v2/contests/1390",
      "web": "https://freelancehunt.com/contest/new-contest/1390.html"
    },
    "comments": "https://api.freelancehunt.com/v2/contests/1390/comments",
    "applications": "https://api.freelancehunt.com/v2/contests/1390/applications"
  }
}
class freelancehunt.models.contest.Contest(id, name=None, budget=None, status=None, description=None, description_html=None, skills=None, final_started_at=None, employer=None, application_count=None, freelancer=None, updates=None, published_at=None, links=None, duration_days=None, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Contest.

Variables
  • id (int) – contest unique identifier

  • name (Optional[str]) – contest title name, defaults to None

  • budget (Optional[BudgetInfo]) – budget of contest, defaults to None

  • status (Optional[str]) – current contest status, defaults to None

  • description (Optional[str]) – description text, defaults to None

  • description_html (Optional[str]) – description text in html formatting, defaults to None

  • skills (Optional[List[Skill]]) – required skill for freelancer, defaults to None

  • final_started_at (Optional[datetime]) – the closing date, defaults to None

  • employer (Optional[Employer]) – employer information object, defaults to None

  • application_count (Optional[int]) – count of application, defaults to None

  • freelancer (Optional[Freelancer]) – freelancer information object, defaults to None

  • updates (Optional[list]) – list of all contest updates, defaults to None

  • published_at (Optional[datetime]) – the publish date, defaults to None

  • links (Optional[dict]) – linked URL, defaults to None

  • duration_days (Optional[int]) – contest duration in days, defaults to None

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Return type

Type[ForwardRef]

Returns

object of this class

load_details()

Load details about current Contest and reload all attributes.

property status

Get status of this contest.

Return type

str

property status_code

Get status code of this contest.

Return type

int

freelancehunt.models.country module

Country object representation.

Documentation example:

{
    "id": 4,
    "iso2": "AU",
    "name": "Австралия"
},
class freelancehunt.models.country.Country(id, name, iso2=None, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Country.

Variables
  • id (int) – country API identifier

  • iso2 (str) – ISO format of country identifier, defaults to None (for Profile “country” var)

  • name (str) – country name

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

Country

freelancehunt.models.feed module

Feed message object representation.

Documentation example:

{
  "id": 1555675871044,
  "type": "feed",
  "attributes": {
    "from": {
      "id": 4,
      "type": "employer",
      "login": "freelancehunt",
      "first_name": "Freelancehunt",
      "last_name": "",
      "avatar": {
        "small": {
          "url": "https://content.freelancehunt.com/profile/photo/50/freelancehunt.png",
          "width": 50,
          "height": 50
        },
        "large": {
          "url": "https://content.freelancehunt.com/profile/photo/225/freelancehunt.png",
          "width": 255,
          "height": 255
        }
      },
      "self": "https://api.freelancehunt.com/v2/employers/4"
    },
    "message": "<img src="https://freelancehunt.com/static/images/fugu/new-text.png" width="16" height="16"/> New message for you.",
    "created_at": "2019-04-19T12:11:11+00:00",
    "is_new": false
  }
}
class freelancehunt.models.feed.FeedMessage(id, message_from, message, created_at, is_new, project=None, contest=None, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Feed message.

Variables
  • id (int) – feed message unique identifier

  • message_from (Union[Employer,Freelancer]) – message sender user object

  • message (str) – the feed message text

  • created_at (datetime) – of the creation date

  • is_new (bool) – sign that the message is new

  • project (Optional[Project]) – linked project object, defaults to None

  • contest (Optional[Contest]) – linked contest object, defaults to None

property contest

Represent the Contest linked to this Feed message.

Return type

Optional[Contest]

Returns

object of linked Contest or None.

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

FeedMessage

property is_contest

Check that Feed message linked to some contest.

Return type

bool

property is_project

Check that Feed message linked to some project.

Return type

bool

property project

Represent the Project linked to this Feed message.

Return type

Optional[Project]

Returns

object of linked Project or None.

property sender

Load and get sender information.

Return type

Union[Employer, Freelancer]

property type

Check type of Feed message.

Return type

str

Returns

type of Feed message: “project”, “contest” or “message”.

freelancehunt.models.project module

Project object representation.

Documentation example:

{
  "id": 299165,
  "type": "project",
  "attributes": {
    "name": "Looking for Full stack developer",
    "description": "Backend must be PHP like Yii or Laravel.",
    "description_html": "<p>Backend must be PHP like Yii or Laravel.</p>",
    "skills": [
      {
        "id": 56,
        "name": "1C"
      }
    ],
    "status": {
      "id": 11,
      "name": "Open for proposals"
    },
    "budget": {
      "amount": 2300,
      "currency": "UAH"
    },
    "bid_count": 1,
    "is_remote_job": false,
    "is_premium": false,
    "is_only_for_plus": false,
    "location": null,
    "safe_type": "employer",
    "is_personal": null,
    "employer": {
      "id": 23476,
      "type": "employer",
      "login": "hello-world",
      "first_name": "Михаил",
      "last_name": "К.",
      "avatar": {
        "small": {
          "url": "https://content.freelancehunt.com/profile/photo/50/hello-world.png",
          "width": 50,
          "height": 50
        },
        "large": {
          "url": "https://content.freelancehunt.com/profile/photo/225/hello-world.png",
          "width": 255,
          "height": 255
        }
      },
      "self": "https://api.freelancehunt.com/v2/employers/23476"
    },
    "freelancer": null,
    "updates": [],
    "published_at": "2019-03-25T19:51:53+02:00",
    "expired_at": "2019-04-01T16:51:53+03:00"
  },
  "links": {
    "self": {
      "api": "https://api.freelancehunt.com/v2/projects/299165",
      "web": "https://freelancehunt.com/project/looking-for-full-stack-developer/299165.html"
    },
    "comments": "https://api.freelancehunt.com/v2/projects/299165/comments",
    "bids": "https://api.freelancehunt.com/v2/projects/299165/bids"
  }
}
class freelancehunt.models.project.Project(id, name=None, employer=None, freelancer=None, budget=None, safe_type=None, status=None, description=None, description_html=None, skills=None, bid_count=None, is_remote_job=None, is_premium=None, is_only_for_plus=None, is_personal=None, updates=None, location=None, expired_at=None, published_at=None, links=None, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Project.

Variables
  • id (int) – project unique identifier

  • name (Optional[str]) – project title, defaults to None

  • employer (Optional[Employer]) – project creator information, defaults to None

  • freelancer (Optional[Freelancer]) – project executor information, defaults to None

  • budget (Optional[BudgetInfo]) – budget of project, defaults to None

  • safe_type (Optional[str]) – type of safe proposed by the employer, defaults to None

  • status (Optional[dict]) – project status information, defaults to None

  • description (Optional[str]) – description text, defaults to None

  • description_html (Optional[str]) – description text in html formatting, defaults to None

  • skills (Optional[List[Skill]]) – required skills for the executor, defaults to None

  • bid_count (Optional[int]) – count of bids, defaults to None

  • is_remote_job (Optional[bool]) – sign that the project is remote job, defaults to None

  • is_premium (Optional[bool]) – sign that the project only for premium, defaults to None

  • is_only_for_plus (Optional[bool]) – sign that the project only for Plus accounts, defaults to None

  • is_personal (Optional[bool]) – sign that the project is private, defaults to None

  • updates (Optional[dict]) – project updates, defaults to None

  • location (Optional[dict]) – required location for the executor, defaults to None

  • expired_at (Optional[datetime]) – the expire date, defaults to None

  • published_at (Optional[datetime]) – the publish date, defaults to None

  • links (Optional[dict]) – URLs related to project, defaults to None

property active_bids

Get active bids for this project.

Return type

List[Optional[Type[ForwardRef]]]

property bids

Get all bids for this project.

Return type

List[Optional[Type[ForwardRef]]]

close()

Close project without winner.

Note

For employer account and your own project.

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

Project

extend(expired_at)

Extend project end date.

Note

For employer account and your own project.

get_bids(status=None, is_winner=False)

Get filtered bids for this project.

Parameters
  • status (Optional[str]) – status of desired bids

  • is_winner (bool) – get only winner bid

Return type

List[Optional[Type[ForwardRef]]]

Get direct project link.

load_details()

Load details about current Project and reload all attributes.

reopen()

Reopen project.

Note

For employer account and your own project.

property status

Get current project status.

Return type

str

property status_code

Get code of current project status.

Return type

int

property winner_bid

Get winner bid for this project.

Return type

Optional[Type[ForwardRef]]

freelancehunt.models.review module

Review object representation.

Documentation example:

{
  "id": 90500,
  "type": "review",
  "attributes": {
    "published_at": "2019-04-25T15:02:19+03:00",
    "is_pending": false,
    "pending_ends_at": null,
    "comment": "Everything is perfect!",
    "grades": {
      "quality": 10,
      "professionalism": 10,
      "cost": 10,
      "connectivity": 10,
      "schedule": 10,
      "total": 10
    },
    "from": {
      "id": 38444,
      "type": "employer",
      "login": "jeweller",
      "first_name": "Oleg",
      "last_name": "V.",
      "avatar": {
        "small": {
          "url": "https://content.freelancehunt.com/profile/photo/50/jeweller.png",
          "width": 50,
          "height": 50
        },
        "large": {
          "url": "https://content.freelancehunt.com/profile/photo/225/jeweller.png",
          "width": 255,
          "height": 255
        }
      },
      "self": "https://api.freelancehunt.com/v2/employers/38444"
    },
    "project": {
      "id": 299178,
      "type": "project",
      "name": "Project with response review(good)",
      "status": {
        "id": 21,
        "name": "Project complete"
      },
      "safe_type": "employer",
      "budget": {
        "amount": 1001,
        "currency": "UAH"
      },
      "self": "https://api.freelancehunt.com/v2/projects/299178"
    }
  }
}
class freelancehunt.models.review.Review(id, published_at, comment, is_pending, grades, creator, pending_ends_at=None, project=None, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Create object to provide operations with Project.

Variables
  • id (int) – review unique identifier

  • published_at (datetime) – the publish date

  • comment (str) – comment from creator

  • grades (dict) – grades of work quality

  • creator (Union[Employer,Freelancer]) – review creator information

  • is_pending (bool) – sign that the project is pending

  • pending_ends_at (Optional[datetime]) – the pending date, defaults to None

  • project (Optional[Project]) – related project object, defaults to None

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Return type

Type[Review]

Returns

object of this class.

freelancehunt.models.skill module

Skill object representation.

Documentation example:

{
    "id": 108,
    "name": "Architectural design"
}
class freelancehunt.models.skill.Skill(id, name, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Skill.

Variables
  • id (int) – skill unique identifier

  • name (str) – skill name

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

Skill

freelancehunt.models.thread module

Thread object representation.

Documentation example:

{
  "id": 2237325,
  "type": "thread",
  "attributes": {
    "subject": "Workspace for project High-budget project",
    "first_post_at": "2019-02-21T14:12:35+02:00",
    "last_post_at": "2019-02-21T14:12:35+02:00",
    "messages_count": 1,
    "is_unread": false,
    "has_attachments": false,
    "participants": {
      "from": {
        "id": 340096,
        "type": "employer",
        "login": "ledpodarok",
        "first_name": "Anatoliy",
        "last_name": "S.",
        "avatar": {
          "small": {
            "url": "https://content.freelancehunt.com/profile/photo/50/ledpodarok.png",
            "width": 50,
            "height": 50
          },
          "large": {
            "url": "https://content.freelancehunt.com/profile/photo/225/ledpodarok.png",
            "width": 255,
            "height": 255
          }
        },
        "self": "http://api.freelancehunt.com/v2/employers/340096"
      },
      "to": {
        "id": 3166,
        "type": "freelancer",
        "login": "raznomir",
        "first_name": "Mikhail",
        "last_name": "Tereshchenko",
        "avatar": {
          "small": {
            "url": "https://content.freelancehunt.com/profile/photo/50/raznomir.png",
            "width": 50,
            "height": 50
          },
          "large": {
            "url": "https://content.freelancehunt.com/profile/photo/225/raznomir.png",
            "width": 255,
            "height": 255
          }
        },
        "self": "http://api.freelancehunt.com/v2/freelancers/3166"
      }
    }
  },
  "links": {
    "self": {
      "api": "http://api.freelancehunt.com/v2/threads/2237325",
      "web": "http://freelancehunt.com/mailbox/read/thread/2237325"
    }
  }
}
class freelancehunt.models.thread.Thread(id, subject, first_post_at, last_post_at, messages_count, is_unread, has_attachments, sender, recipient, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Thread.

Parameters
  • id (int) – thread unique identifier

  • subject (str) – thread subject text

  • first_post_at (datetime) – the first message date

  • last_post_at (datetime) – the last message date

  • messages_count (int) – count of messages in thread

  • is_unread (bool) – sign that the thread is unread

  • has_attachments (bool) – sign that the thread has attachments

  • sender (Profile) – thread creator information

  • recipient (Profile) – thread recipient information

answer(message_html)
classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

Thread

get_messages(pages=1)
Return type

List[ThreadMessage]

freelancehunt.models.threadmessage module

ThreadMessage object representation.

Documentation example:

{
  "id": 67,
  "type": "message",
  "attributes": {
    "message": "I choose you!",
    "message_html": "I choose you!",
    "posted_at": "2019-04-03T09:33:05+03:00",
    "attachments": [],
    "participants": {
      "from": {
        "id": 38444,
        "type": "employer",
        "login": "jeweller",
        "first_name": "Oleg",
        "last_name": "V.",
        "avatar": {
          "small": {
            "url": "https://content.freelancehunt.com/profile/photo/50/jeweller.png",
            "width": 50,
            "height": 50
          },
          "large": {
            "url": "https://content.freelancehunt.com/profile/photo/225/jeweller.png",
            "width": 255,
            "height": 255
          }
        },
        "self": "https://api.freelancehunt.com/v2/employers/38444"
      },
      "to": {
        "id": 5725,
        "type": "freelancer",
        "login": "alex_yar",
        "first_name": "Andrey",
        "last_name": "Y.",
        "avatar": {
          "small": {
            "url": "https://content.freelancehunt.com/profile/photo/50/alex_yar.png",
            "width": 50,
            "height": 50
          },
          "large": {
            "url": "https://content.freelancehunt.com/profile/photo/225/alex_yar.png",
            "width": 255,
            "height": 255
          }
        },
        "self": "https://api.freelancehunt.com/v2/freelancers/5725"
      }
    }
  }
}
class freelancehunt.models.threadmessage.ThreadMessage(id, posted_at, message, message_html, sender, recipient, attachments=None, thread=None, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with ThreadMessage.

Parameters
  • id (int) – thread unique identifier

  • message (str) – message text

  • message_html (str) – message text in html

  • posted_at (datetime) – the message post date

  • attachments (dict) – message’s attachments

  • sender (Profile) – message creator information

  • recipient (Profile) – message recipient information

answer(message_html)

Answer to this message in current thread.

Parameters

message_html (str) – message text to send

Raises
  • ValueError – Thread not linked to this message!

  • BadRequestError – Message not sended!

Return type

Type[ThreadMessage]

Returns

new message object

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Returns

object of this class.

Return type

ThreadMessage

freelancehunt.models.user module

Profile object representation.

Documentation example:

{
  "id": 77278,
  "type": "freelancer",
  "attributes": {
    "login": "Artemkins",
    "first_name": "Артём",
    "last_name": "Yacuk",
    "avatar": {
      "small": {
        "url": "https://content.freelancehunt.com/profile/photo/50/Artemkins.png",
        "width": 50,
        "height": 50
      },
      "large": {
        "url": "https://content.freelancehunt.com/profile/photo/225/Artemkins.png",
        "width": 255,
        "height": 255
      }
    },
    "birth_date": null,
    "created_at": "2014-09-08T15:21:45+03:00",
    "cv": null,
    "cv_html": null,
    "rating": 31597,
    "rating_position": 1,
    "arbitrages": 0,
    "positive_reviews": 295,
    "negative_reviews": 0,
    "plus_ends_at": null,
    "is_plus_active": true,
    "is_online": false,
    "visited_at": null,
    "location": {
      "country": {
        "id": 1,
        "name": "Ukraine"
      },
      "city": {
        "id": 3184,
        "name": "Kharkiv"
      }
    },
    "verification": {
      "identity": true,
      "birth_date": false,
      "phone": true,
      "website": false,
      "wmid": false,
      "email": false
    },
    "contacts": null,
    "status": {
      "id": 10,
      "name": "Available for hire"
    },
    "skills": [
      {
        "id": 14,
        "name": "Search engine optimization",
        "rating_position": 0
      },
      {
        "id": 127,
        "name": "Contextual advertising",
        "rating_position": 0
      },
      {
        "id": 131,
        "name": "Social media marketing",
        "rating_position": 0
      }
    ]
  },
  "links": {
    "self": {
      "api": "https://api.freelancehunt.com/v2/freelancers/77278",
      "web": "https://freelancehunt.com/freelancer/Artemkins.html"
    },
    "reviews": "https://api.freelancehunt.com/v2/freelancers/77278/reviews"
  }
}
class freelancehunt.models.user.Employer(id, login, type, first_name, last_name, avatar=None, birth_date=None, created_at=None, cv=None, cv_html=None, rating=None, rating_position=None, arbitrages=None, positive_reviews=None, negative_reviews=None, plus_ends_at=None, is_plus_active=None, is_online=None, visited_at=None, location=None, verification=None, contacts=None, status=None, skills=None, links=None, **kwargs)

Bases: freelancehunt.models.user.Profile

Provide operations with Employer profile.

class freelancehunt.models.user.Freelancer(id, login, type, first_name, last_name, avatar=None, birth_date=None, created_at=None, cv=None, cv_html=None, rating=None, rating_position=None, arbitrages=None, positive_reviews=None, negative_reviews=None, plus_ends_at=None, is_plus_active=None, is_online=None, visited_at=None, location=None, verification=None, contacts=None, status=None, skills=None, links=None, **kwargs)

Bases: freelancehunt.models.user.Profile

Provide operations with Freelancer profile.

class freelancehunt.models.user.Profile(id, login, type, first_name, last_name, avatar=None, birth_date=None, created_at=None, cv=None, cv_html=None, rating=None, rating_position=None, arbitrages=None, positive_reviews=None, negative_reviews=None, plus_ends_at=None, is_plus_active=None, is_online=None, visited_at=None, location=None, verification=None, contacts=None, status=None, skills=None, links=None, **kwargs)

Bases: freelancehunt.core.FreelancehuntObject

Provide operations with Profile.

Note

Information will be loaded by load_details() if attribute is None

Variables
  • id (int) – unique profile identifier

  • login (str) – profile login name

  • type (str) – type of account

  • first_name (str) – user first name

  • last_name (str) – user last name

  • avatar (dict) – avatars information, defaults to None

  • birth_date (datetime) – string representation of the birth date, defaults to None

  • created_at (str) – string representation of the profile create date, defaults to None

  • cv (str) – profile summary information, defaults to None

  • cv_html (str) – profile summary information in html formatting, defaults to None

  • rating (int) – user rating points, defaults to None

  • rating_position (int) – user rating position, defaults to None

  • arbitrages (int) – count of arbitrages, defaults to None

  • positive_reviews (int) – count of positive reviews, defaults to None

  • negative_reviews (int) – count of negative reviews, defaults to None

  • plus_ends_at (Optional[datetime]) – string representation of the “Plus” status end date, defaults to None

  • is_plus_active (bool) – sign that the user has active a “Plus” status, defaults to None

  • is_online (bool) – sign that the user is online, defaults to None

  • visited_at (datetime) – string representation of the last visited date, defaults to None

  • verification (dict) – verification statuses, defaults to None

  • contacts (dict) – user contacts (links), defaults to None

  • skills (List[Skill]) – user skills, defaults to None

  • links (dict) – URLs related to profile, defaults to None

property city

Get user city.

Return type

City

property country

Get user country.

Return type

Country

classmethod de_json(**data)

Parse json data from API responce and make object of this class.

Return type

Type[Profile]

Returns

object of this class.

property full_name

Get the full name for the current profile.

Return type

str

Returns

full name of the user

load_details()

Load details about current User and reload all attributes.

property profile_url

Get public profile URL.

Return type

str

Returns

public URL for the user

property reviews

Get reviews of this profile.

Return type

List[Type[Review]]

property status

Get current profile status.

Return type

str

property status_code

Get code of profile status.

Return type

int